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

Re: PATH variable case-insensitive?



On Thu, 5 Feb 2015 16:56:00 +0100
Koch <omgoch@xxxxxxxxx> wrote:
> Using zsh 5.0.2 (x86_64-pc-linux-gnu) with the following file contents in 
> ./test.zsh:
> 
> PATH=bar
> path=omg
> echo $PATH
> 
> and running zsh ./test.zsh outputs:
> omg
> 
> Is this a bug? It's certainly not my intention to have this meaning
> attached to this program, since it goes against POSIX.

In addition to what Kurtis said, if you're expecting zsh run in the
default fashion to be strictly POSIX-compatible, you're in for a *lot*
of surprises.  There are ways of making it so but generally speaking
unless you're comfortable with zsh's own way of doing things, bash is
your friend.

pws



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