From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14286 invoked from network); 7 Oct 1998 15:19:12 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 7 Oct 1998 15:19:12 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id KAA14805; Wed, 7 Oct 1998 10:57:03 -0400 (EDT) Resent-Date: Wed, 7 Oct 1998 10:56:45 -0400 (EDT) To: "Bart Schaefer" Cc: zsh-users@math.gatech.edu Subject: Re: Null tilde expansions? References: <981006205428.ZM10148@candle.brasslantern.com> From: Greg Badros Date: 07 Oct 1998 08:00:14 -0700 In-Reply-To: "Bart Schaefer"'s message of "Tue, 6 Oct 1998 20:54:28 -0700" Message-ID: X-Mailer: Gnus v5.4.65/XEmacs 20.4 - "Emerald" Resent-Message-ID: <"3pzu01.0.Zc3.i4u6s"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1838 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu "Bart Schaefer" 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