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: <3BDB65726E32D411AF3F00508BCFDCCC03A4A132@excorp02> From: "Molitor, Stephen" To: cygwin AT cygwin DOT com Subject: Kludgy work-around for pwd problem Date: Mon, 14 May 2001 08:54:20 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Hi, I have this weird problem with pwd in the latest Cygnus installation. I mentioned it last week; here's a simple shell session that demonstrates the problem: administrator AT NDEV04C ~ $ pwd /cygdrive/d/home/steve administrator AT NDEV04C ~ $ cd .. administrator AT NDEV04C ~/.. $ pwd /cygdrive/d/home/steve/.. administrator AT NDEV04C ~/.. $ cd steve administrator AT NDEV04C ~/../steve $ pwd /cygdrive/d/home/steve/../steve administrator AT NDEV04C ~/../steve $ cd ../steve administrator AT NDEV04C ~/../steve/../steve $ pwd /cygdrive/d/home/steve/../steve/../steve administrator AT NDEV04C ~/../steve/../steve $ Notice that the problem is not just with the prompt string; that's just a symptom. The real problem is with pwd. (Actually, I think it might be with the way cd sets the $PWD var.) Anyway, if anyone else is having this problem, I came up with a really kludgy work-around, which I put in my .bashrc: alias pwd="perl -e 'use Cwd; print cwd() . \"\n\"'" export PS1='`pwd`$ ' Obviously you must have Perl installed for this to work. Any insight into this problem would be greatly appreciated. Steve Molitor smolitor AT erac DOT com -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple