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 Date: Tue, 8 Apr 2003 13:57:28 +0100 From: "Steven O'Brien" 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > 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/