in reply to Re^3: How do I test if my PERL script was run using a login vs a non-login shell
in thread How do I test if my Perl script was run using a login vs a non-login shell
Login shells typically do different things than non-login shells. For example, the bash shell will behave differently in terms of what user environment scripts it parses and what environment variables it sets, depending on whether it was run as a login or non-login shell, as well as whether it was run in interactive or non-interactive mode (also a command line argument).
Depending on how it's called, my shell script needs to do different things.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How do I test if my PERL script was run using a login vs a non-login shell
by Anonymous Monk on May 23, 2012 at 04:44 UTC |