From: <hzoli@VNET.IBM.COM> (Zoltan T. Hidvegi)
To: stephen.talley@central.sun.com (Steve Talley)
Cc: zsh-users@math.gatech.edu
Subject: Re: CSH_NULL_GLOB broken?
Date: Mon, 9 Jun 1997 19:39:17 -0400 (EDT) [thread overview]
Message-ID: <9706092339.AA15280@belgium.fishkill.ibm.com> (raw)
In-Reply-To: <199706092049.OAA05185@ipecac.Central.Sun.COM> from Steve Talley at "Jun 9, 97 02:49:10 pm"
Steve Talley wrote:
> CSH_NULL_GLOB doesn't appear to work in 3.1.0:
>
> % unsetopt nomatch
> % unsetopt nullglob
> % setopt cshnullglob
> % ls -d /tmp
> /tmp/
> % ls -d /blah*
> zsh: no match
> % ls -d /tmp /blah*
> zsh: no match
>
> The last command, according to the zshoptions man page, should have
> listed /tmp and ignored the fact that nothing matches /blah*. Am I
> missing something?
That's the documented behaviour, and that's how csh works (tcsh at least).
The manual says: `do not report an error unless all the patterns in a
command have no matches'. The above command has only one pattern, /blah*
and it has no matches, so the error comes. /tmp is not a pattern since it
does not conain any glob special characters.
Zoltan
prev parent reply other threads:[~1997-06-09 23:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-06-09 20:49 Steve Talley
1997-06-09 22:05 ` Vincent Lefevre
1997-06-09 23:39 ` Zoltan T. Hidvegi [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=9706092339.AA15280@belgium.fishkill.ibm.com \
--to=hzoli@vnet.ibm.com \
--cc=stephen.talley@central.sun.com \
--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).