Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-ID: <001201c2d9e0$22e1a4b0$1700a8c0@RIPA3> From: "Anders Ripa" To: Subject: Problems starting tcsh when having spaces in username - with fix Date: Fri, 21 Feb 2003 20:33:39 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h1LJXsb31741 I get the message : ================================ Anders Ripa AT RIPA3 ~ $ tcsh if: Expression Syntax. > ================================ When I try to run the tcsh command on my Windows XP Home machine The problem as far as I have been able to trace it is that I have set up my user account with the name "Anders Ripa", e.g. it contains a space. I have been able to trace the problem to the file: /etc/profile.d/complete.tcsh If I modify the file to use quotes in 4 places, then tcsh starts correctly. ================================ $ diff complete.tcsh fixed_complete.tcsh 2c2 < # $Id: complete.tcsh,v 1.1 2003/02/08 11:00:25 corinna Exp $ --- > # $Id: complete.tcsh,v 1.1 2001/12/21 12:22:24 corinna Exp $ 26c26 < if ( -r $f ) then --- > if ( -r "$f" ) then 30c30 < if ( -r $HOME/.netrc ) then --- > if ( -r "$HOME/.netrc" ) then 236c236 < if ( -f $HOME/.mh_profile && -x "`which folders`" ) then --- > if ( -f "$HOME/.mh_profile" && -x "`which folders`" ) then 643c643 < if (-r $HOME/.mailrc) then --- > if (-r "$HOME/.mailrc") then ================================ Currently I have to reapply the fix when tcsh is updated. I hope this can be of some help to other cygwin users. Best regards Anders Ripa -- Anders Ripa http://www.ripa.se/anders/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/