Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Null tilde expansions?
- X-seq: zsh-users 1831
- From: Greg Badros <gjb@xxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: Null tilde expansions?
- Date: 06 Oct 1998 11:16:28 -0700
Is there any way to make ~notauser not cause an error (similar to the
null globbing option)?
I'd like this to give me the home directories of all the users in group oo_gang
users=(`ypcat group | awk -F: '/^oo_gang\>/ { printf $4 }' | tr , ' '`)
dirs=~$^users
without first having to eliminate users from $users which no longer
exist (our sysadmins aren't good about eliminating users from groups
when the remove the user account).
Thanks,
Greg
Messages sorted by:
Reverse Date,
Date,
Thread,
Author