Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Null tilde expansions?
- X-seq: zsh-users 1834
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: Greg Badros <gjb@xxxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: Null tilde expansions?
- Date: Tue, 6 Oct 1998 20:54:28 -0700
- In-reply-to: <qrrr9wly2rn.fsf@xxxxxxxxxxxxxxxxxxxxxxxxx>
- References: <qrrr9wly2rn.fsf@xxxxxxxxxxxxxxxxxxxxxxxxx>
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:#~)
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author