Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Null tilde expansions?
- X-seq: zsh-users 1838
- From: Greg Badros <gjb@xxxxxxxxxxxxxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Null tilde expansions?
- Date: 07 Oct 1998 08:00:14 -0700
- Cc: zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: "Bart Schaefer"'s message of "Tue, 6 Oct 1998 20:54:28 -0700"
- References: <qrrr9wly2rn.fsf@xxxxxxxxxxxxxxxxxxxxxxxxx> <981006205428.ZM10148@xxxxxxxxxxxxxxxxxxxxxxx>
"Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx> writes:
> On Oct 6, 11:16am, Greg Badros wrote:
> } Subject: Null tilde expansions?
> }
> } Is there any way to make ~notauser not cause an error (similar to the
> } null globbing option)?
>
> unsetopt badpattern
> users=(`ypcat group | awk -F: '/^oo_gang\>/ { printf $4 }' | tr , ' '`)
> dirs=(~$^users)
> dirs=(${(M)dirs:#~)
This doesn't work for me with Zsh 3.1.4 (few if any patches) or Zsh 3.0.5:
% unsetopt badpattern
% echo ~notauser
zsh: no such user or named directory: notauser
The badpattern option does look like the right thing, but perhaps it's broken?
Thanks for the response...
Greg
Messages sorted by:
Reverse Date,
Date,
Thread,
Author