Mail Archives: cygwin/1997/11/05/07:58:22
I've done a binary install of beta 18 on an NT4.0 system, and have had
some script problems. I have determine the cause to be that the names of
environment variables in child processes created under bash change. The
names all get converted to upper case. As an example of what I mean I
have pasted an annotated bash transcript below (annotation preceded by
<--).
WAYNEC4:~ 1 >echo $var <-- check for name
<-- okay, no defined
WAYNEC4:~ 2 >echo $VAR <--
<-- not defined
WAYNEC4:~ 3 >export var=joejoe <-- define var
WAYNEC4:~ 4 >export VAR=janejane <-- define VAR
WAYNEC4:~ 5 >echo $var <--
joejoe <-- what I expected
WAYNEC4:~ 6 >echo $VAR <--
janejane <-- also what I expected
WAYNEC4:~ 7 >/bin/sh <-- copy of
/gnuwin32/b18/.../bash.exe
WAYNEC4:~ 1 >echo $var <-- did the child inherit
<-- not what I expected
WAYNEC4:~ 2 >echo $VAR <-- did the child inherit
joejoe <-- very much not what I expected
WAYNEC4:~ 3 >exit <-- go back
exit <--
WAYNEC4:~ 8 >echo $var <--
joejoe <-- still there
WAYNEC4:~ 9 >echo $VAR <--
janejane <-- still there
WAYNEC4:~ 10 >
I must have set something up wrong, but I can't find it in the FAQ or
recent mailing list archives. How do I fix this so the environment
variables don't change case?
Thanks,
Wayne Batchler
NCR Corporation wayne DOT batchler AT columbiasc DOT ncr DOT com
3325 Platt Springs Rd. ph: (803)939-6516
West Columbia, SC 29170 fax: (803)939-7317
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -