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

Re: PATCH: start of options tests



On May 11, 11:32am, Peter Stephenson wrote:
}
} AUTO_CD which requires SHINSTDIN to be set for some reason (it isn't
} in a script).

That's exactly the point.  You're not allowed to use autocd in a script.
If shell functions had existed when autocd was invented, you probably
wouldn't be allowed to use it in a function either.  It's meant to be a
purely interactive feature -- but testing INTERACTIVE isn't sufficient,
because INTERACTIVE is still set during `. file'.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



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