bug-bash
[Top][All Lists]
Advanced

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

Re: Feature Request: stack


From: Chet Ramey
Subject: Re: Feature Request: stack
Date: Tue, 29 Dec 2020 10:48:26 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.6.0

On 12/27/20 11:29 PM, William Park wrote:
I have feature request: stack variable.  Almost like current DIRSTACK
with 'pushd' and 'popd', but for regular arrays.

I know it can be implemented with array, where you push and pop from the
end.  But, a real stack is better.

How is putting something like this into bash `better' than writing a couple
of shell functions to do it? There's no discernable demand, and no use
cases.

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



reply via email to

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