On 4/21/17 11:48 AM, Pete Smith wrote:

> It appears to me that the sub shell does inherit the dirs stack, but any
> changes that are made to the dir stack remain
> in the sub shell and do not propagate back to the parent shell.

Correct; it's a separate process.

> Does the exchanges of your implementation comments mean the possibility of
> the addition of the -v option to pushd and 
> popd are in the realm of possibility?

I think the key takeaway is that this is trivial to do with a shell
function, even if you want to add argument parsing (use getopts) and
pass all the option arguments except -v to the builtins.

I would pursue that implementation first. It's much simpler and can be
done more quickly.

Chet

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

Reply via email to