help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Anomalies with ${*}


From: Greg Wooledge
Subject: Re: [Help-bash] Anomalies with ${*}
Date: Tue, 27 Mar 2012 09:34:47 -0400
User-agent: Mutt/1.4.2.3i

On Tue, Mar 27, 2012 at 07:20:09AM -0600, Eric Blake wrote:
> saveIFS=$IFS
> IFS=
> test "$*" || syntax
> IFS=$saveIFS

I am not a fan of that saveIFS=$IFS technique either.  It does not
properly restore IFS if IFS was unset at the beginning.  (It works OK
if IFS has its default value of $' \t\n' though.)



reply via email to

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