Skip to content

Commit

Permalink
don't pollute SHELL
Browse files Browse the repository at this point in the history
  • Loading branch information
adam committed Feb 8, 2006
1 parent 21b69a3 commit 6597a75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .switch_shell
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ switch_shell_debug () {
switch_shell_safely () {
# we do this rather than exec() just in case $myshell fails to run.
switch_shell_debug "Switching to $myshell safely ..."
if SHELL="$myshell" "$myshell" $myshell_args; then
if "$myshell" $myshell_args; then
switch_shell_debug "$myshell exited OK; exiting parent shell."
exit
else
Expand All @@ -52,7 +52,7 @@ switch_shell_safely () {

switch_shell_dangerously () {
switch_shell_debug "Switching to $myshell dangerously ..."
SHELL="$myshell" exec "$myshell" $myshell_args
exec "$myshell" $myshell_args
}

switch_shell () {
Expand Down

0 comments on commit 6597a75

Please sign in to comment.