delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/11/21/19:03:16

From: tomas DOT fasth AT twinspot DOT net (Tomas Fasth)
Subject: Question about bash and case sensitive exports
21 Nov 1997 19:03:16 -0800 :
Message-ID: <347599A1.E50AE4DF.cygnus.gnu-win32@twinspot.net>
Mime-Version: 1.0
To: gnu-win32 <gnu-win32 AT cygnus DOT com>

I have a problem with bash when trying to export variables with names in
lower case. I am trying to control the behavior of a configure script by
having a variable no_pipe defined in the environment. On pure *nix this
works, in gnuwin32 it does not because bash insists to upper case
exported variable names.

An example using bash in gnuwin32:

bash$ my_var=my_var ; export my_var
bash$ env
MY_VAR=yes

Although having exported environment variables in upper case can be
considered a most common usage, forcing variable names to upper case is
not a portable behavior.

My questions are:
Why is bash performing this variable name mangling at all?
Can I change bash behavior in this regard without having to recompile?

-- 
Hälsningar/Regards

Tomas Fasth <tomas DOT fasth AT twinspot DOT net>
Tel: +46-13-218-181 Cel: +46-708-870-957 Fax: +46-708-870-258
EuroNetics Operation, Mjärdevi Science Park, 58330 Linköping, Sweden
(TwinSpot Network is a subsidiary of EuroNetics Operation)
-
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