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: <003101c11ff4$d4441f00$0200000a@phoenix> From: "Peter Feldbaumer" To: Subject: pwd-problem Date: Wed, 8 Aug 2001 12:28:13 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Hi! I'm new to this mailing-list, so please excuse if I ask questions that aren't that new to you. I tried to search the archives concerning pwd-problems, and found that there have already been some discussions concerning the paths pwd (or /bin/pwd) is returning. I'm having the problem, that pwd always returns the path where you typed in your last command. This breaks a few makefiles if they are located in subdirectories, since they use "$(shell pwd)" to get their "TOPDIR". And since pwd doesn't return the path the makefile is in, but rather the path you typed "make -C subdir" in, they don't get their "TOPDIR" right. First I thought that this was a problem only concerning "make", but some tests prooved that this seems to be a general problem with "pwd". 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". Right now I'm using the snaptshot of Aug.7th 2001 on Win98, but this "bug" (feature?) was already present in the snapshots before. 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! Best regards, Peter Feldbaumer -- FeldTech.com - Software Engineering & System Solutions Goestingerstraße 72, 8051 Graz, Austria Tel.: +43/316/584530 - Fax.: +43/316/584930 http://www.feldtech.com - mailto:feldbaumer AT feldtech DOT com -- 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/