Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3BDB65726E32D411AF3F00508BCFDCCC03A4A121@excorp02> From: "Molitor, Stephen" To: "'Craveiro, Marco'" Cc: "'cygwin AT cygwin DOT com'" Subject: RE: pwd problems Date: Thu, 10 May 2001 07:47:27 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Marco, Thanks for the tip. It helped a bit, I guess, but I still have the same basic problem. Here's a new session: [administrator AT NDEV04C steve]$ echo $PS1 [\u@\h \W]$ [administrator AT NDEV04C steve]$ cd .. [administrator AT NDEV04C ..]$ cd steve [administrator AT NDEV04C steve]$ cd .. [administrator AT NDEV04C ..]$ cd steve [administrator AT NDEV04C steve]$ pwd /cygdrive/d/home/steve/../steve/../steve/../steve/../steve [administrator AT NDEV04C steve]$ As you can see, pwd displays the whole history of how I got to the cwd. So I don't think it's a prompt string problem; something is weird with pwd. Hmmm..... Steve Molitor smolitor AT erac DOT com -----Original Message----- From: Craveiro, Marco [mailto:Marco DOT Craveiro AT solvay DOT com] Sent: Thursday, May 10, 2001 3:03 AM To: Molitor, Stephen Subject: RE: pwd problems Hello Stephen, How is your PS1 setup? Mine uses \W and it works fine... Try changing your .profile to something like: PS1="[\u@\h \W]$ " Marco > -----Original Message----- > From: Molitor, Stephen [SMTP:SMolitor AT erac DOT com] > Sent: Wednesday, May 09, 2001 5:35 PM > To: 'cygwin AT cygwin DOT com' > Subject: pwd problems > > I just installed the latest version of Cygwin. I have a > strange problem with pwd -- instead of just showing the current > directory, it shows how I cd'd there, with '..' and stuff. > Here's an example, that I pasted from a bash session: > > administrator AT NDEV04C ~ > $ pwd > /cygdrive/d/home/steve > > administrator AT NDEV04C ~ > $ cd .. > > administrator AT NDEV04C ~/.. > $ cd steve > > administrator AT NDEV04C ~/../steve > $ cd .. > > administrator AT NDEV04C ~/../steve/.. > $ cd steve > > administrator AT NDEV04C ~/../steve/../steve > $ cd .. > > administrator AT NDEV04C ~/../steve/../steve/.. > $ cd steve > > administrator AT NDEV04C ~/../steve/../steve/../steve > $ pwd > /cygdrive/d/home/steve/../steve/../steve/../steve > > administrator AT NDEV04C ~/../steve/../steve/../steve > $ > > Curiously, this problem does not occur if I'm underneath the root ('/') > directory. > > Any help would be appreciated! > > Steve Molitor > smolitor AT erac DOT com -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple