Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
560b55d1fb | ||
|
6f51dd7abb | ||
|
284077d1a1 | ||
|
3470e4b979 |
@ -0,0 +1,4 @@
|
||||
#! ../../../urchin -x
|
||||
running=$(ps -o comm= -p $$ && :)
|
||||
echo "Running shell: $running"
|
||||
[ "$running" = bash ]
|
3
tests/Cross-shell test support/urchin -x should pass the $TEST_SHELL
Executable file
3
tests/Cross-shell test support/urchin -x should pass the $TEST_SHELL
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
export TEST_SHELL=/bin/zsh
|
||||
echo '[ "$TEST_SHELL" = /bin/zsh ] ; exit $?' | ../../urchin -x
|
3
tests/Cross-shell test support/urchin -x should start a shell.
Executable file
3
tests/Cross-shell test support/urchin -x should start a shell.
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
test c = $(../../urchin -x .print-arg-3 a 'b b b b' c d e)
|
3
tests/Cross-shell test support/urchin -x should start the $TEST_SHELL
Executable file
3
tests/Cross-shell test support/urchin -x should start the $TEST_SHELL
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
export TEST_SHELL=/bin/zsh
|
||||
echo 'test -n "$ZSH_VERSION"; exit $?' | ../../urchin -x
|
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
export TEST_SHELL=/bin/bash
|
||||
../../urchin .test-urchin-x
|
@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
test c = $(../urchin -x .print-arg-3 a 'b b b b' c d e)
|
6
urchin
6
urchin
@ -177,8 +177,10 @@ do
|
||||
;;
|
||||
-x) # `urchin -sh` is equivalent to "$TEST_SHELL"
|
||||
shift
|
||||
urchinsh=${TEST_SHELL:-/bin/sh}
|
||||
"$urchinsh" "$@"
|
||||
#current_shell=$(ps -o comm= -p $$ && :)
|
||||
#urchinsh=${TEST_SHELL:-$current_shell}
|
||||
export TEST_SHELL=${TEST_SHELL:-/bin/sh}
|
||||
"$TEST_SHELL" "$@"
|
||||
exit $?;;
|
||||
-h|--help) urchin_help
|
||||
exit 0;;
|
||||
|
Loading…
Reference in New Issue
Block a user