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: <80575AFA5F0DD31197CE00805F650D7602CFA5@wilber.adroit.com> From: "Robinow, David" To: "'Peter Feldbaumer'" , cygwin AT cygwin DOT com Subject: RE: pwd-problem Date: Wed, 8 Aug 2001 09:57:27 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" > From: Peter Feldbaumer [mailto:feldbaumer AT feldtech DOT com] > Subject: pwd-problem > I'm having the problem, that pwd always returns the path > where you typed in your last command. >... > If you have a short shell-script > > #!/bin/sh > pwd > > saved as /tmp/print_pwd, and then go to your root dir and type > tmp/print_pwd > the output of print_pwd will be > / > and not > /tmp > as I would expect. > > Please correct me, but I don't think that this is the > expected behaviour of "pwd". It is the expected behaviour. > Right now I'm using the snaptshot of Aug.7th 2001 on Win98, > but this "bug" > (feature?) was already present in the snapshots before. This is not a Cygwin issue. All unix-based systems behave this way. > > If I'm wrong about this, please could you point out ANY way > that I can get > pwd to print the "current" directory, since I tried already numerous > versions (cd tmp && pwd ....) and they all deliver the same result! You seem to have a strange idea of "current" directory. Would "dirname" do what you want? -- 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/