parentheses in environment variable name

Linda Walsh cygwin@tlinx.org
Thu May 9 06:15:00 GMT 2013


BJ Quinn wrote:

> Anyway, at least one suggestion I found was that my problem may be caused by the CommonProgramFiles(x86) environment variable needing to be set to 'C:\Program Files (x86)\Common Files'.  So, can anyone suggest how to set an environment variable whose VARIABLE NAME (not just the VALUE) contains parentheses?!?  The standard backslash escape character doesn't appear to work in this scenario.  That, or perhaps I'm on the wrong track altogether.  I'm open to any suggestions.
----
env - "CommonProgramFiles(x86)"="...whatever" /bin/bash.exe (or another program...)
will set the name with parens in the environment...


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