delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/08/08:55:30

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Tue, 8 Apr 2003 13:57:28 +0100
From: "Steven O'Brien" <steven DOT obrien2 AT ntlworld DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Problem with ls and similar commands in tcsh
Message-Id: <20030408135728.193a93dd.steven.obrien2@ntlworld.com>
Mime-Version: 1.0

> and have traced the "If: expression syntax" error to the lines
> 
> if ( -r $HOME/.netrc ) then
> 
> and
> 
> if ( -f $HOME/.mh_profile && -x "`which folders`" ) then
> 
> in /etc/profile.d/complete.tcsh

You will see this failure if your $HOME variable has spaces in it,
because the expressions as written above do not quote this variable
correctly. I would urge the tcsh maintainer to change the above lines
to:

if ( -r "$HOME/.netrc" ) then

and

if ( -f "$HOME/.mh_profile" && -x "`which folders`" ) then

I would also urge everyone to avoid spaces in "standard" env. vars such
as HOME and TEMP etc because many naive scripts (both bourne- and c-
varieties) will fail in similar circumstances. For example if you really
feel the need to have cygwin home dirs coincident with Windows home
dirs(I am not recommending this tho) you can do something like:

mount -s -b "c:/Documents and Settings" /home

and then make sure that HOME is /home/username

Regards,
Steven





--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019