bug-bash
[Top][All Lists]
Advanced

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

Re: How to directly modify $@?


From: Pierre Gaston
Subject: Re: How to directly modify $@?
Date: Sun, 20 Nov 2011 18:54:42 +0200

On Sun, Nov 20, 2011 at 6:43 PM, Peng Yu <pengyu.ut@gmail.com> wrote:
> Hi,
>
> I don't see if there is a way to directly modify $@. I know 'shift'.
> But I'm wondering if there is any other way to modify $@.
>
> ~$ 1=x
> -bash: 1=x: command not found
> ~$ @=(a b c)
> -bash: syntax error near unexpected token `a'
>
you need to use the set builtin:
set -- a b c



reply via email to

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