Re: Feature Request: stack

2020-12-29 Thread Chet Ramey

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, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/



Feature Request: stack

2020-12-28 Thread William Park
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.
-- 
William Park