help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] The difference between $* and "$*"?


From: Bob Proulx
Subject: Re: [Help-bash] The difference between $* and "$*"?
Date: Mon, 3 Feb 2014 12:49:15 -0700
User-agent: Mutt/1.5.21 (2010-09-15)

Greg Wooledge wrote:
> Bob Proulx wrote:
> >   If IFS is unset, the parameters are separated by spaces.
> > So if "unset IFS" then "$*" expands to "$1 $2 $3".
> >   If IFS is null, the parameters are joined without intervening
> >   separators.
> > So if "unset IFS" then "$*" expands to "$1$2$3".
> 
> That last sentence is wrong.  You meant to say, if IFS="" then "$*"
> expands to "$1$2$3".

Ah, yes, of course.  Thanks for the review!  Peer review is a
wonderful thing! :-)

Bob



reply via email to

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