This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: parentheses in environment variable name


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


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