bug-bash
[Top][All Lists]
Advanced

[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: Tue, 18 Apr 2017 10:46:20 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 4/17/17 5:57 PM, Pete Smith wrote:
> Ahh that makes sense:
> 
>    "That will never change the current directory, since the popd is run in
> a subshell."
> 
> So what's the possibility of adding -v option to popd and pushd???

I'd advise doing it with a shell function first; that's much easier to
play around with.  Start with something similar to what Eduardo or I
sent and add whatever option parsing you want.

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



reply via email to

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