delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/08/08:31:26

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:35:37 +0100
From: Dan Hatton <dan DOT hatton AT btinternet DOT com>
X-X-Sender: dan AT DAN-HATTON DOT geol DOT ucl DOT ac DOT uk
To: cygwin AT cygwin DOT com
Subject: Problem with ls and similar commands in tcsh
Message-ID: <Pine.CYG.4.53.0304081319590.476@DAN-HATTON.geol.ucl.ac.uk>
MIME-Version: 1.0
X-UCL-MailScanner: Found to be clean
X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by delorie.com id h38CVQQ15901

I just spotted the thread of this title, in the <cygwin AT cygwin DOT com>ñ
archive for October 2002.  I've been having the same problems [1], 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

This also explains the problem expanding the wildcard in ls, since if
complete.tcsh ran all the way through, it would (at least under some
cirumstances) unset noglob.

However, I still don't know how to solve the problem.  Any ideas, please?

Hint: the problem appears to be dependent on which user is running tcsh.

[1] The problems are: tcsh reports the error "If: expression syntax" on
startup, and ls fails to expand the wildcard *.

-- 
Thanks

Dan Hatton

<http://www.bib.hatton.btinternet.co.uk/dan/>

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