in reply to Re: Detect Environment
in thread Detect Environment

There's also the popular “hard-links that investigate $0 approach”. While we're chatting about shell scripting, I think "$@" (in Bash, not Perl!) gives a more robust approach to grabbing command-line arguments.