aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test1.in
diff options
context:
space:
mode:
authorGravatar Kurtis Rader <krader@skepticism.us>2016-04-06 13:04:44 -0700
committerGravatar Kurtis Rader <krader@skepticism.us>2016-04-06 13:04:44 -0700
commit02f18cae0aa9c44beade38b1b14c9f59d54b9078 (patch)
tree6ac79b892acc6a1a19c9a6aa2926ad7ccb1a9272 /tests/test1.in
parent4ff8e6e7818747d805ac44be0a36aedef4deaa5c (diff)
fix setting of $argv for `source` w/no args
Fixes #139
Diffstat (limited to 'tests/test1.in')
-rw-r--r--tests/test1.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test1.in b/tests/test1.in
index d52d558e..ff6075cc 100644
--- a/tests/test1.in
+++ b/tests/test1.in
@@ -166,5 +166,11 @@ function always_fails
end
end
-always_fails ; echo $status
+# Verify $argv set correctly in sourced scripts.
+# Issue #139
+echo 'echo "source argv {$argv}"' | source
+echo 'echo "source argv {$argv}"' | source -
+echo 'echo "source argv {$argv}"' | source - abc
+echo 'echo "source argv {$argv}"' | source - abc def
+always_fails ; echo $status