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 16:19:50 +0200



On Thu, Feb 16, 2012 at 4:13 PM, <address@hidden> wrote:
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'


Well, the border is thin enough that some people are willing to cross it, eg ksh93 intends to be an alternative to general purpose language.

It might not be the intent of bash though.


reply via email to

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