help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] append to $@ one by one


From: Andreas Kusalananda Kähäri
Subject: Re: [Help-bash] append to $@ one by one
Date: Mon, 21 Oct 2019 08:45:37 +0200
User-agent: Mutt/1.12.2 (2019-09-21)

On Sun, Oct 20, 2019 at 09:55:19AM -0500, Peng Yu wrote:
> I think you guys are exaggerating to the extent that lose the essence of my
> original question.
> 
> $@ is just an array. Given a regular array can support +=, why not let $@
> also support the append operation?

In what ways are the list of positional parameters an array?  Arrays
expands in an analogous way to "$@" and "$*" when using [@] and [*]
respectively, but that's about it.

I've always thought of them as something quite separate, with arrays
being an extension provided as a convenience.

> 
> On Sun, Oct 20, 2019 at 9:17 AM Gerard E. Seibert <address@hidden>
> wrote:
> 
> > On Sun, 20 Oct 2019 08:08:32 -0400, Eli Schwartz commented:
> > >All of which could be gotten rid of if bash just knew what you wanted.
> > >I demand a new feature for bash which reads my mind and does what I
> > >want without requiring me to program it first.
> >
> > Why limit it to just Bash? I wish my spread-sheet program would just
> > understand the formula I want entered without me going through all the
> > trouble of actually having to enter it.
> >
> > --
> > Gerard
> >
> -- 
> Regards,
> Peng



reply via email to

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