bug-bash
[Top][All Lists]
Advanced

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

Re: how to save "$@", shift and reset $@ ?


From: Paul Jarc
Subject: Re: how to save "$@", shift and reset $@ ?
Date: Thu, 29 May 2003 16:21:09 -0400
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

gk <gk@proliberty.com> wrote:
> I would like to save a copy of "$@" and reset it using 'set' command
> but cannnot figure out any way to inhibit evaluation of arguments to
> set.

A normal variable will not be able to store all the information needed
to restore $@.  You could use an array variable to store a copy of $@,
or you could use a shell function, which would run with its own
private $@.


paul




reply via email to

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