Why do you care if it's a login or non-login shell? Perhaps you really want to know if the script is being run interactively?
Detecting interactive/non-interactive shell
In reply to Re: How do I test if my Perl script was run using a login vs a non-login shell
by Mr. Muskrat
in thread How do I test if my Perl script was run using a login vs a non-login shell
by paulski82
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |