[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Issus with popd and pushd
From: |
Chet Ramey |
Subject: |
Re: Issus with popd and pushd |
Date: |
Fri, 21 Apr 2017 13:36:05 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
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 chet@case.edu http://cnswww.cns.cwru.edu/~chet/
- Issus with popd and pushd, Pete Smith, 2017/04/17
- Re: Issus with popd and pushd, Reuti, 2017/04/17
- Re: Issus with popd and pushd, Chet Ramey, 2017/04/17
- Re: Issus with popd and pushd, Pete Smith, 2017/04/17
- Re: Issus with popd and pushd, Eduardo Bustamante, 2017/04/18
- Re: Issus with popd and pushd, Chet Ramey, 2017/04/18
- Re: Issus with popd and pushd, L A Walsh, 2017/04/18
- Re: Issus with popd and pushd, Chet Ramey, 2017/04/18
- Re: Issus with popd and pushd, Pete Smith, 2017/04/21
- Re: Issus with popd and pushd,
Chet Ramey <=
- Re: Issus with popd and pushd, Chet Ramey, 2017/04/21
- Re: Issus with popd and pushd, Pete Smith, 2017/04/22
- Re: Issus with popd and pushd, Chet Ramey, 2017/04/18
Re: Issus with popd and pushd, L A Walsh, 2017/04/18