| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| 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" <drobinow AT dayton DOT adroit DOT com> |
| To: | "'Peter Feldbaumer'" <feldbaumer AT feldtech DOT com>, 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) |
> 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |