bug-bash
[Top][All Lists]
Advanced

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

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


From: Chet Ramey
Subject: Re: `pushd DIR' fails when DIR starts with "-"
Date: Fri, 15 Oct 2004 15:46:07 -0400

> 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    address@hidden    http://tiswww.tis.cwru.edu/~chet/




reply via email to

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