logo       

Re: `pushd DIR' fails when DIR starts with "-": msg#00209

shells.bash.bugs

Subject: Re: `pushd DIR' fails when DIR starts with "-"

> Bash Version: 3.0
> Patch Level: 13
> Release Status: release
>
> Description:
>
> `pushd DIR' fails to work if DIR starts with a hyphen.
> Using `pushd -- DIR' does not help.

Thanks for the report.

The first check for `--' is not superfluous; it exists to make `pushd --'
and `pushd' equivalent, which is clumsy to do with the existing options
loop.

I have fixed the problem, but you can easily work around it by using
`pushd ./-foo'.

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live...Laugh...Love
Chet Ramey, ITS, CWRU chet@xxxxxxxxxxx http://tiswww.tis.cwru.edu/~chet/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise