bug-bash
[Top][All Lists]
Advanced

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

Re: why does cd change DIRSTACK?


From: Chet Ramey
Subject: Re: why does cd change DIRSTACK?
Date: Mon, 11 Feb 2008 09:26:57 -0500

> I don't understand why cd changes DIRSTACK. From the manpage I got the 
> impression that only pushd and popd change DIRSTACK (besides dir -c).

The current directory is always the first entry in the directory stack
(index 0).  As such, cd will always change it.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                                Live Strong.
Chet Ramey, ITS, CWRU    address@hidden    http://tiswww.tis.case.edu/~chet/




reply via email to

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