From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28480 invoked from network); 17 Apr 2001 09:04:32 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 17 Apr 2001 09:04:32 -0000 Received: (qmail 15119 invoked by alias); 17 Apr 2001 09:04:25 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13998 Received: (qmail 15108 invoked from network); 17 Apr 2001 09:04:24 -0000 From: Sven Wischnowsky Date: Tue, 17 Apr 2001 11:04:22 +0200 (MET DST) Message-Id: <200104170904.LAA05143@beta.informatik.hu-berlin.de> To: zsh-workers@sunsite.dk Subject: Re: Automatic hash -d In-Reply-To: <1010413164729.ZM1933@candle.brasslantern.com> Bart Schaefer wrote: > On Apr 13, 5:09am, Bart Schaefer wrote: > } > } + eval : "~$linepath" 2>/dev/null # Create nameddir if necessary > > I have not committed this, because the code immediately following seems > to go to great lengths to *avoid* creating the nameddir ... the entire > cascade testing $userdirs and $nameddirs could otherwise be replaced by > an eval like the one in the *\$*/* branch, I think. In fact, that's > probably what's wrong with testing *\$*/* first: It does an eval and may > thereby create a nameddir. > > So I'm going to wait for Sven to get back and give his opinions. It's probably ok to use eval there, ensuring that it doesn't print error messages, because that seems to have been the reason for all that code (added in 9880). Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de