[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
- Re: [Help-bash] The difference between $* and "$*"?, (continued)
- Re: [Help-bash] The difference between $* and "$*"?, Seth David Schoen, 2014/02/01
- Re: [Help-bash] The difference between $* and "$*"?, Chet Ramey, 2014/02/02
- Re: [Help-bash] The difference between $* and "$*"?, Peng Yu, 2014/02/02
- Re: [Help-bash] The difference between $* and "$*"?, Eric Blake, 2014/02/03
- Re: [Help-bash] The difference between $* and "$*"?, Eric Blake, 2014/02/03
- Re: [Help-bash] The difference between $* and "$*"?, Chet Ramey, 2014/02/03
Re: [Help-bash] The difference between $* and "$*"?, Bob Proulx, 2014/02/01