delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/12/28/17:52:07

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
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <sc2cb0f7.094@nrcgwia.nrc.gov>
X-Mailer: Novell GroupWise 5.5.4
Date: Fri, 28 Dec 2001 17:50:34 -0500
From: "Christopher Murray" <CJM4 AT nrc DOT gov>
To: <cygwin AT cygwin DOT com>
Subject: cd behavior in tcsh with non-posix style paths
Mime-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id fBSMq4E00857

Hi everyone,

Pardon my ignorance on this, but I have searched the mailing list archives on this (as well as read the user guide to look for guidance) but this problem doesn't seem to be mentioned anywhere.  
 
I have been using tcsh and cygwin for a long time now (since the b19 days) and have pretty much gotten used to navigating the directories on my hard drive using the non-posix style paths (i.e. cd d:/some_dir).  Over the past several months I have been living with the following behavior but I've reached a point where I either track this sucker down, or change my way of working:

While in tcsh, with the noglob variable set

/> set noglob
/> cd d:/work/advcode

/d:/work/advcode/> pwd
/cygdrive/d/work/advcode

/d:/work/advcode/> cd ..

/d:/work/> pwd
/cygdrive/d/work/advcode


But when I navigate to each individual  subdirectory separately, everything is fine, ala

/> set noglob
/> cd d:/
/d:/>cd work
/d:/work>cd advcode

/d:/work/advcode/> pwd
/cygdrive/d/work/advcode

/d:/work/advcode/> cd ..

/d:/work/> pwd
/cygdrive/d/work


Furthermore, if I unset the noglob variable, then I get this (

/> unset noglob
/> cd d:/work/advcode
/d:/work/advcode/> cd ..
/d:/work:  No such file or directory

When I use posix style paths, all is fine.  What's more, I can do the above in bash and all is OK.

Is the above behavior expected or is this indicative of a problem with tcsh?

Thanks in advance,
Chris


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