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 Message-Id: <se8ac592.005@KAKARI.KAKARI.COM> Date: Wed, 02 Apr 2003 11:12:02 -0700 From: "Aaron Humphrey" <HumphreyA AT Kakari DOT com> To: <cygwin AT cygwin DOT com> Subject: complete.tcsh doesn't handle spaces in $HOME Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h32IAkX11706 I have been using Cygwin on a Windows 2000 computer running on a Novell network; my local user name is "Aaron Humphrey", and so my home directory is "/home/Aaron Humphrey". I've been trying to use tcsh, but it would abort out of the startup scripts, saying "If: expression syntax", leaving me with an empty prompt and a number of other problems. The latest upgrade of tcsh didn't fix the problem. I finally traced the problem to complete.tcsh, and eventually determined that it was running into problems whenever it had a condition of the form if (-f $HOME/filename ) because this was expanding to if (-f /home/Aaron Humphrey/filename ) and the space made it invalid. An easy workaround for this problem is just to wrap all of the $HOME/filename conditions in double quotes, which would probably be a good idea in a future release of tcsh. Once I did this in complete.tcsh, tcsh started up just fine. -- --Aaron Humphrey Programmer, Kakari Systems Ltd. <http://www.kakari.com> -- 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/