To reproduce, put this into a file (say `foo'),
for x; do
shift $#
echo $x
done
and run
$ sh ./foo x y z
x
y
./foo
The last line should be `z', obviously, but it's not.
--
Oğuz
To reproduce, put this into a file (say `foo'),
for x; do
shift $#
echo $x
done
and run
$ sh ./foo x y z
x
y
./foo
The last line should be `z', obviously, but it's not.
--
Oğuz