delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.6 required=5.0 tests=BAYES_00 |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <121062.84662.qm@web51004.mail.re2.yahoo.com> |
Date: | Wed, 11 Mar 2009 09:37:23 -0700 (PDT) |
From: | Mark Charney <mark_charney AT yahoo DOT com> |
Subject: | quoting issues spaces in $HOME with tcsh |
To: | cygwin AT cygwin DOT com |
MIME-Version: | 1.0 |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
I had to add quotes around $f in lines 42 and 43 of /etc/profile.d/complete.tcsh before cygwin would successfully start up a tcsh window. The problem occurs if one has $HOME elements with spaces in them. You get a message about invalid "if" syntax. 37 38 if ($?_complete) then 39 set noglob 40 if ( ! $?hosts ) set hosts 41 foreach f ("$HOME/.hosts" /usr/local/etc/csh.hosts "$HOME/.rhosts" /etc/hosts. quiv) 42 if ( -r "$f" ) then 43 set hosts = ($hosts `grep -v "+" "$f" | grep -E -v "^#" | tr -s " " " " | cut -f 1`) 44 endif 45 end This problem comes up periodically with various /etc/profile.d files. I just updated cygwin yesterday and encountered it again here. Hope this helps get a fix deployed... -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |