This is the mail archive of the
mailing list for the Cygwin project.
Problems starting tcsh when having spaces in username - with fix
- From: "Anders Ripa" <anders dot ripa at mailbox dot swipnet dot se>
- To: <cygwin at cygwin dot com>
- Date: Fri, 21 Feb 2003 20:33:39 +0100
- Subject: Problems starting tcsh when having spaces in username - with fix
I get the message :
Anders Ripa at RIPA3 ~
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:
If I modify the file to use quotes in 4 places, then tcsh starts correctly.
$ diff complete.tcsh fixed_complete.tcsh
< # $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 $
< if ( -r $f ) then
> if ( -r "$f" ) then
< if ( -r $HOME/.netrc ) then
> if ( -r "$HOME/.netrc" ) then
< if ( -f $HOME/.mh_profile && -x "`which folders`" ) then
> if ( -f "$HOME/.mh_profile" && -x "`which folders`" ) then
< 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.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html