AAFC-BICoE / acceptor

bash script for acknowledging of login messages & logging acceptance
MIT License
0 stars 0 forks source link

traps not returning to normal stat #1

Open gnewton opened 10 years ago

gnewton commented 10 years ago

When ssh'ing to cluster machine where acceptor is installed, when control-c invoked when running a program, the program exits, AND the unerlying login shell exits, returning to the ssh client machine.

This is different when testing the program by running it: when being invoked at login time, it is being sourced, which does not execute the script in a subshell and the shell is therefore changed.

gnewton commented 10 years ago

Fixed.