incompatible environment variable names

Andy Koppe andy.koppe@gmail.com
Wed Aug 4 19:06:00 GMT 2010


On 4 August 2010 19:59, Nellis, Kenneth wrote:
>> > Cygwin> export QNX_VISUAL_C++_PATH="$(cygpath "$(printenv
>> QNX_VISUAL_C++_PATH)")"
>> > -bash: export: `QNX_VISUAL_C++_PATH=/cygdrive/c/Program Files/Orbital
>> Qnx VisualC++ IDE': not a valid identifier
>> > Cygwin>
>> >
>> > I probably need to give up on this, but felt like sharing my misery.
>>
>> bash does not support the plus character in a variable name and
>> no amount of finagling is going to fix it.
>
> Well, *somehow* it got into the Cygwin environment, and cygwin.bat directly
> invokes bash, so I interpret this as bash creating the Cygwin environment.
> Where is the hole in this logic?

The Windows environment is translated by the Cygwin DLL, which gets
loaded and initialised when bash.exe is invoked.

Andy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list