This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
bash bug: variables with lowercase names will not `export'
- To: gnu-win32 at cygnus dot com
- Subject: bash bug: variables with lowercase names will not `export'
- From: "Lassi A. Tuura" <Lassi dot Tuura at cern dot ch>
- Date: Tue, 13 May 1997 18:12:52 +0200
- Organization: CERN, European Laboratory for Particle Physics
I just installed the gnuwin32/b18 stuff on my NT 4.0 Pentium Pro
machine, and in general everything seems to work fine. Nice work,
indeed!
Trying to port some of my stuff from unix-world broke in the following
scenario:
---- foo.sh ----
#! /bin/sh
foo=bar
export foo
echo foo=$foo
./bar.sh
---- bar.sh ----
#! /bin/sh
echo foo=$foo
---- end -------
Executing `foo.sh' prints the lines:
foo=bar
foo=
If I replace `foo' with `FOO' everything works as expected. Is this a
bug or something normal? On unixen all shells I know do pass lowercase
variable names to subshells -- bash included -- so I'd assume this is a
bug. Any quick/easy way to fix it?
Cheers,
//lat
--
Lassi.Tuura@cern.ch There's no sunrise without a night
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".