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: Pete Smith
Subject: Re: Issus with popd and pushd
Date: Sat, 22 Apr 2017 00:38:40 -0700

Thanks 

I was being a bit dense, didn't realize that the format you gave causes the commands to run in the parent shell.

It works as it should!

-Pete

On Fri, Apr 21, 2017 at 10:52 AM, Chet Ramey <chet.ramey@case.edu> wrote:
On 4/21/17 1:36 PM, Chet Ramey wrote:

> 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.

On second thought, don't use getopts.

--
``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/


reply via email to

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