From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13501 invoked from network); 7 Dec 1996 13:49:11 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 7 Dec 1996 13:49:11 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id IAA16826; Sat, 7 Dec 1996 08:40:38 -0500 (EST) Resent-Date: Sat, 7 Dec 1996 08:33:04 -0500 (EST) From: Zefram Message-Id: <14199.199612071333@stone.dcs.warwick.ac.uk> Subject: Re: bug with **/ syntax? To: matthew@ans.net (Matthew Braun) Date: Sat, 7 Dec 1996 13:33:47 +0000 (GMT) Cc: zsh-users@math.gatech.edu In-Reply-To: <199612071232.HAA06845@sassy.aa.ans.net> from "Matthew Braun" at Dec 7, 96 07:32:26 am X-Loop: zefram@dcs.warwick.ac.uk X-Stardate: [-31]8537.82 X-US-Congress: Moronic fuckers Content-Type: text Resent-Message-ID: <"bMgYm1.0.u34.F8Ngo"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/542 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu >[this next example is the alleged bug, it shouldn't show the directories >under libtemplate --matthew] > >sassy:ftp/glimpse-4.0.src> \ls -d **/ >agrep/ lib/ libtemplate/template/ >bin/ libtemplate/ libtemplate/util/ >compress/ libtemplate/include/ >index/ libtemplate/lib/ That is correct behaviour: A pathname component of the form .BI ( foo /)# matches a path consisting of zero or more directories matching the pattern foo. As a shorthand, .B **/ is equivalent to .BR (*/)# . Thus: .RS .PP ls .BI (*/)# bar .RE .PP or .RS .PP ls .BI **/ bar .RE .PP does a recursive directory search for files named bar, not following symbolic links. For this you can use the form .BR ***/ .