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

Re: Automatic hash -d



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@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author