longer shell list

This commit is contained in:
Thomas Levine 2016-04-04 21:21:24 +00:00
parent 04c4f54789
commit ddb74d43d8
2 changed files with 13 additions and 2 deletions

View File

@ -1,2 +1,3 @@
#!/bin/sh #!/bin/sh
# apt-get install bash dash ksh posh pdksh mksh yash zsh
. ./.run . ./.run

14
urchin
View File

@ -51,7 +51,17 @@ set -e
# Kill subprocesses on interrupt. # Kill subprocesses on interrupt.
trap "kill -$$; exit" HUP INT TERM trap "kill -$$; exit" HUP INT TERM
DEFAULT_SHELLS='sh bash dash mksh zsh' DEFAULT_SHELLS='
sh
bash
dash
ksh
posh
pdksh
mksh
yash
zsh
'
if [ -n "${ZSH_VERSION}" ]; then if [ -n "${ZSH_VERSION}" ]; then
# avoid "no matches found: *" error when directories are empty # avoid "no matches found: *" error when directories are empty
setopt NULL_GLOB setopt NULL_GLOB
@ -641,7 +651,7 @@ main() {
if ! test -f "${shell_list}"; then if ! test -f "${shell_list}"; then
if $cycle_shell; then if $cycle_shell; then
for shell in $DEFAULT_SHELLS; do for shell in $DEFAULT_SHELLS; do
if which $shell > /dev/null; then if which $shell 1> /dev/null 2> /dev/null; then
echo $shell >> "$shell_list" echo $shell >> "$shell_list"
fi fi
done done