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: lxnf98mm
Subject: Re: [Help-bash] opposite of 'shift'
Date: Thu, 16 Feb 2012 08:13:30 -0600 (CST)
User-agent: Alpine 2.00 (LRH 1167 2008-08-23)

On Thu, 16 Feb 2012, Peng Yu wrote:

On Thu, Feb 16, 2012 at 7:57 AM, Greg Wooledge <address@hidden> wrote:
On Thu, Feb 16, 2012 at 07:44:47AM -0600, Peng Yu wrote:
I recall now that I have seen this before. I think that it is probably
better to have some function like 'unshift' [...]

You can implement an unshift function for your scripts if you want.
Would you like help writing it?  No?  You just want to keep complaining
that Bash doesn't have every conceivable feature from every other
programming language you've ever worked with?

If other languages have it, why not bash can not have it? If many
users end up having to write up its own version of the function for
the same purpose, why not adding to the language. I don't think that
you comment make any sense here.

You could equally ask why other languages provide these functions
after all users could define their own functions.


I still do not understand this
Why do you call Bash a language
Greg pointed out 'Bash is a SHELL'

Richard



reply via email to

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