Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Command != command ???
- X-seq: zsh-users 9149
- From: Philippe Troin <phil@xxxxxxxx>
- To: Meino Christian Cramer <Meino.Cramer@xxxxxx>
- Subject: Re: Command != command ???
- Date: 24 Jul 2005 20:32:38 -0700
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <20050725.050633.74748820.Meino.Cramer@xxxxxx>
- Mail-copies-to: nobody
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050724.074251.74755659.Meino.Cramer@xxxxxx> <87r7dnsvjn.fsf@xxxxxxxxxxxxxxxx> <20050725.050633.74748820.Meino.Cramer@xxxxxx>
Meino Christian Cramer <Meino.Cramer@xxxxxx> writes:
> > You setopt extendglob in your zshrc, which is not sourced for your script.
> >
> > Either move the setopt to zshenv, or add setopt extendedglob to your
> > script.
> >
> > Phil.
>
> Thank you for you reply.
>
> I have set extendedglob in my .zshrc...is that not sufficient ?
.zshrc is only sourced for interactive shell. A script is considered
non-interactive. .zshenv is *always* loaded (except if your admin
unsetopt's RCS in /etc/zshenv, but that would be idiotic). Yet,
that's not the answer to your problems.
No, Bart's right in <1050724232221.ZM26877@xxxxxxxxxxxxxxxxxxxxxxx>.
Extended_glob is not necessary for **.
Yet, the manual states (FILENAME GENERATION > Recursive Globbing):
As a shorthand, `**/' is equivalent to `(*/)#'; note that
this therefore matches files in the current directory as
well as subdirectories.
And earlier on (FILENAME GENERATION > Glob Operators):
x# (Requires EXTENDED_GLOB to be set.) Matches zero
or more occurrences of the pattern x.
Should we fix the manual?
Phil.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author