This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problems starting tcsh when having spaces in username - with fix


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]