This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

bash bug: variables with lowercase names will not `export'


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".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]