This is the mail archive of the
mailing list for the Cygwin project.
Re: parentheses in environment variable name
- From: Linda Walsh <cygwin at tlinx dot org>
- To: cygwin at cygwin dot com
- Date: Wed, 08 May 2013 23:14:48 -0700
- Subject: Re: parentheses in environment variable name
- References: <1911165825 dot 42500 dot 1368069210455 dot JavaMail dot root at seidal dot com>
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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple