From: Zefram <zefram@dcs.warwick.ac.uk>
To: matthew@ans.net (Matthew Braun)
Cc: zsh-users@math.gatech.edu
Subject: Re: bug with **/ syntax?
Date: Sat, 7 Dec 1996 13:33:47 +0000 (GMT) [thread overview]
Message-ID: <14199.199612071333@stone.dcs.warwick.ac.uk> (raw)
In-Reply-To: <199612071232.HAA06845@sassy.aa.ans.net> from "Matthew Braun" at Dec 7, 96 07:32:26 am
>[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 ***/ .
prev parent reply other threads:[~1996-12-07 13:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-12-07 12:32 Matthew Braun
1996-12-07 13:33 ` Zefram [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=14199.199612071333@stone.dcs.warwick.ac.uk \
--to=zefram@dcs.warwick.ac.uk \
--cc=matthew@ans.net \
--cc=zsh-users@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).