Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-01-09 10:13:21 +0300
committerDenys Vlasenko <vda.linux@googlemail.com>2017-01-09 10:13:21 +0300
commit2b1559056cf32c42675ecd937796e1455bcb5c2c (patch)
tree6dc78577d23802be73dbb03990e5352c1d4fa323 /shell/hush_test/hush-misc/source_argv_and_shift.right
parent4e4f88e569e6e32669c856a86c60bb3fc104d588 (diff)
hush: fix a bug in argv restoration after sourcing a file
if sourced file "shift"ed argvs so that $1 is NULL, restore wasn't done. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-misc/source_argv_and_shift.right')
-rw-r--r--shell/hush_test/hush-misc/source_argv_and_shift.right4
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/source_argv_and_shift.right b/shell/hush_test/hush-misc/source_argv_and_shift.right
new file mode 100644
index 000000000..b15cc96e7
--- /dev/null
+++ b/shell/hush_test/hush-misc/source_argv_and_shift.right
@@ -0,0 +1,4 @@
+sourced_arg1:1
+arg1:
+sourced_arg1:a
+arg1:1