delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/05/14/01:25:10

From: Lassi DOT Tuura AT cern DOT ch ("Lassi A. Tuura")
Subject: bash bug: variables with lowercase names will not `export'
14 May 1997 01:25:10 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <33789304.2934.cygnus.gnu-win32@cern.ch>
Mime-Version: 1.0
X-Mailer: Mozilla 3.01Gold (X11; I; HP-UX B.10.10 9000/777)
Original-To: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

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 DOT Tuura AT cern DOT ch          There's no sunrise without a night
-
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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019