[Top][All Lists]
[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.)
- [Help-bash] Anomalies with ${*}, Bill Gradwohl, 2012/03/27
- Re: [Help-bash] Anomalies with ${*}, Greg Wooledge, 2012/03/27
- Re: [Help-bash] Anomalies with ${*}, Bill Gradwohl, 2012/03/27
- Re: [Help-bash] Anomalies with ${*}, Greg Wooledge, 2012/03/27
- Re: [Help-bash] Anomalies with ${*}, Bill Gradwohl, 2012/03/27
- Re: [Help-bash] Anomalies with ${*}, Eric Blake, 2012/03/27
- Re: [Help-bash] Anomalies with ${*}, Bill Gradwohl, 2012/03/27
Re: [Help-bash] Anomalies with ${*}, Chet Ramey, 2012/03/27