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: Peng Yu
Subject: Re: [Help-bash] opposite of 'shift'
Date: Thu, 16 Feb 2012 17:16:08 -0600

> If you aren't willing to back up any of your wild ideas with actual
> patches and concrete evidence why it makes life easier, then quit
> proposing "features" that most shell scripters will never use in the
> first place.

If there were such a unshift function, how do you just people would
not use it? Languages have something similar to unshift do not have to
justify why unshift should be implemented and how many users would use
them before unshift was implemented.

A fare comparison is that which of the following is better?

set -- xxx $@

or

unshift xxx

It is obvious that the 2nd case is better.

As Chet said, bash is a language, whether people call it "scripting"
or not. It doesn't have to less features.

-- 
Regards,
Peng



reply via email to

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