bug-bash
[Top][All Lists]
Advanced

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

Re: let's set the positional parameters with a simple 'read'


From: Pierre Gaston
Subject: Re: let's set the positional parameters with a simple 'read'
Date: Tue, 3 Jan 2012 19:36:16 +0200

On Tue, Jan 3, 2012 at 7:16 PM,  <jidanni@jidanni.org> wrote:
...
> So I propose we 'wreck the language' to allow me to do
> $ read @
> to set $@, same with 1, 2,.. * (almost the same as @).
>

Since you can use "read -a arr" to set arr[1] arr[2] ...etc it's not
that interesting
Setting the positional parameters is really only useful as tricks in
shells that don't have
function local variables or arrays.



reply via email to

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