help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] opposite of 'shift'


From: Pierre Gaston
Subject: Re: [Help-bash] opposite of 'shift'
Date: Thu, 16 Feb 2012 08:52:23 +0200



On Thu, Feb 16, 2012 at 8:47 AM, Peng Yu <address@hidden> wrote:
Hi,

I'm wondering what is the opposite of 'shift'. I'm trying to look for
something like 'push', 'push_front', etc. But I don't find it. Is
there something in bash that do push to the front of an array (and to
"$@" by default)?


There's no opposite only:
set -- blah "$@"

It's probably a better idea to implement whatever structure you want with an array 

reply via email to

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