projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
hush: fix a bug in argv restoration after sourcing a file
[oweals/busybox.git]
/
shell
/
hush_test
/
hush-misc
/
source2.tests
diff --git
a/shell/hush_test/hush-misc/source2.tests
b/shell/hush_test/hush-misc/source2.tests
index 40b6b83cdb350d9893b829d5f6848ab0b3f26248..1870cdf7e502a8ab82ea1cf8ecdccbee5796ca0d 100755
(executable)
--- a/
shell/hush_test/hush-misc/source2.tests
+++ b/
shell/hush_test/hush-misc/source2.tests
@@
-1,8
+1,3
@@
-echo 'echo "0:$0 1:$1 2:$2"' >sourced1
-set -- 1 2 3
-"$THIS_SH" -c '. ./sourced1' arg0 arg1 arg2
-echo Ok1:$?
-"$THIS_SH" -c '. ./sourced1 q w e' arg0 arg1 arg2
-echo Ok2:$?
-
-rm sourced1
+false
+. /dev/null
+echo Done: $?