run-*d.sh: support $SHELL values other than bash
commit7ed2874407d8dd68016aacbd1ed43e1b5861b4de
authorKyle J. McKay <mackyle@gmail.com>
Sun, 16 Feb 2014 18:36:19 +0000 (16 10:36 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 16 Feb 2014 18:36:19 +0000 (16 10:36 -0800)
tree60ae6ebea629025d14d9ab685067aee02ed9da85
parent7a0422233f07afa070cb2adbd4aaf57093750573
run-*d.sh: support $SHELL values other than bash

Continuing the saga of --shell support we follow up the last
episode 7a042223 with support for --shell when $SHELL is something
other than bash.

Only the bash shell allows the "-l -i" combination.  It's an error
for other shells.  While the tcsh shell does allow "-l", it must
be given alone.  The other shells do not have a "login shell" option.
Instead they activate a login shell if the first character of arg 0
is a '-'.  All shells support the POSIX "-i" option though.

Support $SHELL when it's set to something other than bash by only
passing the "-i" option and make it a login shell by forcing arg 0
to start with a '-'.
toolbox/run-jobd.sh
toolbox/run-taskd.sh