bug-bash
[Top][All Lists]
Advanced

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

Re: bash-2.04-87 sets incorrect value for env variable PWD .......... ..


From: Chet Ramey
Subject: Re: bash-2.04-87 sets incorrect value for env variable PWD .......... ......
Date: Thu, 20 Sep 2001 09:04:55 -0400

> I think BASH sets incorrect value for env variable PWD.
> 
> I am using bash version 2.04-87 in suse.
> 
> Steps to Reproduce:
> 1.Log in as any user with the login shell as bash.
> 2.run the command 'cd //' (without quotes).
> 3.run the command 'pwd'. It shows '//'.
> 4.echo the env variable PWD, 'echo $PWD'. It shows '//'.
> 
> Actual Results:
> The env variable is set to '//'.
> 
> Expected Results:
> The env variable PWD should be set to '/'

Jeez, I need to make this an FAQ soon.  POSIX.2 says two leading slashes
in $PWD and in an argument to `cd' are to be left alone.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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