bug-bash
[Top][All Lists]
Advanced

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

bug in pwd POSIX-compliance


From: Eric Blake
Subject: bug in pwd POSIX-compliance
Date: Wed, 16 Feb 2005 06:56:34 -0700
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

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

Machine: i686
OS: cygwin
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686'
- -DCONF_OSTYPE='cygwin' -DCONF_MACHTYPE='i686-pc-cygwin' -DCONF_VENDOR='pc'
- -DLOCALEDIR='/usr/local/share/locale' -DPACKAGE='bash' -DSHELL
- -DHAVE_CONFIG_H -DRECYCLES_PIDS  -I.  -I. -I./include -I./lib   -g -O2
uname output: CYGWIN_NT-5.1 LOUNGE 1.5.13s(0.117/4/2) 20050114 01:55:54
i686 unknown unknown Cygwin
Machine Type: i686-pc-cygwin

Bash Version: 3.0
Patch Level: 16
Release Status: release

Description:
POSIX requires pwd(1) with the -P option to update the PWD environment
variable with a version scrubbed of all symlinks.  See
http://www.opengroup.org/onlinepubs/009695399/utilities/pwd.html

Bash currently does not do this, but leaves PWD untouched with the
non-canonical form of the current directory.

Repeat-By:
$ set -o posix
$ cd tmp
$ mkdir a
$ ln -s a b
$ cd -L b
$ pwd
/tmp/b
$ pwd -L
/tmp/b
$ echo $PWD
/tmp/b
$ pwd -P       # Bug is here
/tmp/a
$ echo $PWD    # Should print /tmp/a
/tmp/b

Fix: Unknown.

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

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

iD8DBQFCE1ES84KuGfSFAYARAsrjAJ9Q5mdVbgCqV+8PgtW+RmNiVgXJgwCffeot
WUlUV2+omsUlpSQItcWvGnU=
=bk/n
-----END PGP SIGNATURE-----




reply via email to

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