bug-bash
[Top][All Lists]
Advanced

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

Re: \w, $PWD and pwd builtin return "//" instead of '/'


From: Chet Ramey
Subject: Re: \w, $PWD and pwd builtin return "//" instead of '/'
Date: Sat, 12 Jan 2019 20:43:35 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.3.3

On 1/12/19 7:52 PM, mike b wrote:
> Upon changing directory, with "//" passed as an argument, the trailing '/'
> is still displayed when cwd is looked up by Bash:
> 
> bash-5.0# cd //
> bash-5.0# pwd
> //
> bash-5.0# echo $PWD
> //

Bash FAQ, question E10. That should tell you how long this question has
been asked. :-)

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

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