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
/
source1.tests
diff --git
a/shell/hush_test/hush-misc/source1.tests
b/shell/hush_test/hush-misc/source1.tests
index c1388835943de940eb586b9f0c1207de5ca18b6b..e2e75b22700ea364e38c6c0501a9d53e92f089c9 100755
(executable)
--- a/
shell/hush_test/hush-misc/source1.tests
+++ b/
shell/hush_test/hush-misc/source1.tests
@@
-1,10
+1,5
@@
-echo 'echo ${^}
-echo line2' >sourced1
-. ./sourced1
-echo Ok1:$?
-
-echo "echo '" >sourced1
-. ./sourced1
-echo Ok2:$?
-
-rm sourced1
+echo "echo Sourced ok" >../sourced.sh
+PATH="..:$PATH"
+. sourced.sh
+rm ../sourced.sh
+echo Done