hush: fix shift + $0 bug; add testcase
This commit is contained in:
6
shell/hush_test/hush-misc/shift.tests
Normal file
6
shell/hush_test/hush-misc/shift.tests
Normal file
@@ -0,0 +1,6 @@
|
||||
if test $# = 0; then
|
||||
exec "$THIS_SH" $0 abc "d e"
|
||||
fi
|
||||
echo $0 $1 $2
|
||||
shift
|
||||
echo $0 $1 $2
|
||||
Reference in New Issue
Block a user