X-Spam-Check-By: sourceware.org X-YMail-OSG: H7lhJ70VM1nnXUpiym8hy0_NMsew7FfnaCK_hs47bDjBQAMCpuYmmFDbuPj5LxRdk1xKZCnli3LFqUGHKryjOo.hQRk.fAJep5hRZWMptdmq68fg07WAlxyakjhy9gtWFckXGTky9uuYR4E- X-Mailer: YahooMailRC/368.8 YahooMailWebService/0.6.132.8 Date: Wed, 21 Feb 2007 12:24:17 -0800 (PST) From: Mark Charney Subject: parens in PATH break tcsh /etc/profile.d init for xorg and lapack To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Message-ID: <472946.24106.qm@web51012.mail.yahoo.com> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l1LKOak7003454 Hello, Having parentheses in the PATH environment variable appears to confuse 2 of the scripts that get run during tcsh initialization: /etc/profile.d/00xorg-x11-base.csh and /etc/profile.d/lapack.csh This comes up when, for example, one uses MSVS8 x64. It includes PATH environment variable components that have parentheses in the PATH, such as: /cygdrive/c/Program Files (x86)/Microsoft Visual Studio 8/VC/bin/amd64 If one sources either of the above mentioned /etc/profile.d files when the PATH environment variable contains a left parenthesis, then one gets the following error: Badly placed ()'s These /etc/profile.d scripts get sourced in a for-loop by /etc/csh.cshrc when tcsh starts up. The offending idiom in both of these files uses double quotes. I think the fix is to use single quotes instead. For example in the 00xorg-x11-base.csh file: Bad: # Check if path is already in PATH eval "/bin/echo ${PATH} | /bin/grep -q /usr/X11R6/bin" Good: eval '/bin/echo ${PATH} | /bin/grep -q /usr/X11R6/bin' And similarly in the lapack.csh file: Bad: eval "/bin/echo ${PATH} | /bin/grep -q ${LA_BINDIR}" Good: eval '/bin/echo ${PATH} | /bin/grep -q ${LA_BINDIR}' This is not a new problem. It has been around for at least a year, I think. I just got sufficiently motivated to mention it when I had to install cygwin on a bunch of machines. ---- More detail on the above: % setenv PATH /bin % source 00xorg-x11-base.csh % echo $PATH /usr/X11R6/bin:/bin % setenv PATH '/bin:/:/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 8/VC/bin/amd64' % echo $PATH /bin:/:/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 8/VC/bin/amd64 % source 00xorg-x11-base.csh Badly placed ()'s. ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/