zsh-users
 help / color / mirror / code / Atom feed
* Null tilde expansions?
@ 1998-10-06 18:16 Greg Badros
  1998-10-07  1:13 ` Sweth Chandramouli
  1998-10-07  3:54 ` Bart Schaefer
  0 siblings, 2 replies; 11+ messages in thread
From: Greg Badros @ 1998-10-06 18:16 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~1998-10-08  7:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-10-06 18:16 Null tilde expansions? Greg Badros
1998-10-07  1:13 ` Sweth Chandramouli
1998-10-07  3:54 ` Bart Schaefer
1998-10-07 15:00   ` Greg Badros
1998-10-07 15:11     ` Peter Stephenson
1998-10-07 15:26     ` Bart Schaefer
1998-10-07 15:41       ` Greg Badros
1998-10-07 16:47         ` Bart Schaefer
1998-10-07 17:50           ` Greg Badros
1998-10-07 18:36             ` Bart Schaefer
1998-10-08  7:29               ` Peter Stephenson

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).