[EMAIL PROTECTED] wrote:
If you have a way to determine at
start-up that you're running under bash, you could hard-wire this or
at least change the default in that environment.  See the following
docs on how this works:

I currently use the following to detect bash.  While it is probably
possible to fool it, it isn't easy and, if the user wants to force
Perl into thinking it is running under Bash when it is really DCL,
I'm not sure that is an issue.

if getenv("SHELL") == "bash"
and if argv[0] is in Unix format and is == getenv("_")
then bash environment is assumed.

I need to do the check in a lib$initialize section, and the getenv() CRTL call can not be used there.

-John
[EMAIL PROTECTED]
Personal Opinion Only

Reply via email to