bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sh, pwd -P and $PWD


From: Eric Blake
Subject: Re: sh, pwd -P and $PWD
Date: Mon, 13 Nov 2006 07:33:21 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Thunderbird/1.5.0.8 Mnenhy/0.7.4.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Egmont Koblinger on 11/13/2006 7:26 AM:
> Hi,
> 
> According to the bash manpage and to "help pwd", "pwd -P" should only print
> something but not change the state of bash.

Unfortunately, the current wording of POSIX 2001 requires 'pwd -P' to
change the state of bash.  But this is only done in posix mode, since it
is so counterintuitive.  Also, I raised this issue with the POSIX folks a
while ago, so the next version of POSIX (currently in draft form at
opengroup.org/austin, free registration required to read the draft; final
version expected in 2008) may relax this so that 'pwd -P' is once again
non-state-changing.

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFWIIx84KuGfSFAYARAk/CAJ9gYveTtd6LlPnmLjJH61qdGA1m7wCfZo1J
/0bO5D3IwgUF8f0sZWClBbA=
=BKzL
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]