Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Null tilde expansions?



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