bug-bash
[Top][All Lists]
Advanced

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

Re: "$@" vs. nounset


From: Mike Frysinger
Subject: Re: "$@" vs. nounset
Date: Mon, 29 Jun 2009 15:25:05 -0400
User-agent: KMail/1.11.4 (Linux/2.6.30; KDE/4.2.4; x86_64; ; )

On Monday 29 June 2009 14:38:34 Yang Zhang wrote:
> Mike Frysinger wrote:
> > does something like this at the top of the script work ?
> > [ $# -eq 0 ] && set --
>
> But I also would need that at the top of every function, right?

assuming this snippet actually helps, then probably.  but it might be easier 
than replacing all "$@" occurrences ... i'm merely suggesting workarounds 
until bash gets fixed.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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