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

Strange effect under 3.1.1



Hi,

I just noticed a very strange effect after having switched to 3.1.1 .
Please tell, what's going on here.
Thanks,
Helmut Jarausch.


I have a symbolic link   /bin/shell  ->  /bin/zsh

This script works as expected

With fileA
#!/bin/zsh
echo $ZSH_VERSION
echo $argv[-1]

fileA 1 2 3
prints (as expected)

3.1.1
3


BUT  with
fileB
#!/bin/shell
echo $ZSH_VERSION
echo $argv[2]

fileB 1 2 3
prints (not so expected)

3.1.1
[-1]               <====================== what's going on here ?



--
Helmut Jarausch
Lehrstuhl f. Numerische Mathematik
Institute of Technology
RWTH Aachen
D 52056 Aachen, Germany





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