bug-bash
[Top][All Lists]
Advanced

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

RE: `pwd' returns a dot


From: Le Manh Cuong
Subject: RE: `pwd' returns a dot
Date: Wed, 16 Sep 2015 17:34:57 +0700

When variable PWD changed, the behavior of pwd is unspecified http://pubs.opengroup.org/onlinepubs/9699919799/utilities/pwd.html#tag_20_97_08

-- 
Mr. LE Manh Cuong
Mobile: +84 1216 181090
Skype: manhcuongle


> From: 446240525@qq.com
> Subject: `pwd' returns a dot
> Date: Wed, 16 Sep 2015 15:51:08 +0800
> To: bug-bash@gnu.org
>
> $ cd /
> $ PWD=. bash -c pwd
> .
> $ PWD=. ksh -c pwd
> /
>
> Posix says that pwd shouldn't return the filenames dot or dot-dot.
> http://pubs.opengroup.org/onlinepubs/9699919799/utilities/pwd.html
>

reply via email to

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