[Top][All Lists]

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

Re: how to do "$@"?

From: Raja R Harinath
Subject: Re: how to do "$@"?
Date: Fri, 19 Apr 2002 16:26:00 -0500
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i686-pc-linux-gnu)


Paul Eggert <address@hidden> writes:

>> From: Akim Demaille <address@hidden>
>> Date: 18 Apr 2002 14:33:03 +0200
>> This is the kind of obfuscation I'd like to avoid.
> OK, I installed the following patch instead.  I think it reflects all
> your comments.  It uses the obfuscated code only in places where the
> ZSH_VERSION fixes don't apply.
> In this patch I couldn't resist tuning the Zsh workaround slightly,
> as follows:
>   ${ZSH_VERSION-:} alias -g '${1+"$@"}'='"$@"'

This'll not work in zsh: ZSH_VERSION expands to a non-empty version

- Hari
Raja R Harinath ------------------------------ address@hidden
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash

reply via email to

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