[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `pwd' returns a dot
From: |
Chet Ramey |
Subject: |
Re: `pwd' returns a dot |
Date: |
Wed, 16 Sep 2015 10:47:55 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
On 9/16/15 3:51 AM, ziyunfei wrote:
> $ 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
Thanks for the report. I'll take a look.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/