On Thu, Aug 29, 2013 at 2:54 PM, Greg Wooledge wrote:
> On Thu, Aug 29, 2013 at 12:57:22PM -0400, DJ Mills wrote:
> > On Thu, Aug 29, 2013 at 12:42 PM, DJ Mills
> wrote:
> >
> > > When using a non-default IFS (a default IFS would trim them), a single
> > > empty trailing field is ignored for rea
On Thu, Aug 29, 2013 at 2:38 PM, Dan Douglas wrote:
> On Thursday, August 29, 2013 01:03:20 PM DJ Mills wrote:
> > $(arr=(foo bar baz); IFS=:; str=${arr[*]}; echo "$str")
> > foo bar baz
> > $ (arr=(foo bar baz); IFS=:; str="${arr[*]}"; echo "$str")
> > foo:bar:baz
> >
> > Note that the same thin
On Thu, Aug 29, 2013 at 12:57:22PM -0400, DJ Mills wrote:
> On Thu, Aug 29, 2013 at 12:42 PM, DJ Mills wrote:
>
> > When using a non-default IFS (a default IFS would trim them), a single
> > empty trailing field is ignored for read -a.
> >
> > IFS=: read -rd '' -a arr < <(printf %s ':foo:bar:');
On Thursday, August 29, 2013 01:03:20 PM DJ Mills wrote:
> $(arr=(foo bar baz); IFS=:; str=${arr[*]}; echo "$str")
> foo bar baz
> $ (arr=(foo bar baz); IFS=:; str="${arr[*]}"; echo "$str")
> foo:bar:baz
>
> Note that the same thing does not occur for "$*":
> $ (set -- foo bar baz; IFS=:; str=$*;
$(arr=(foo bar baz); IFS=:; str=${arr[*]}; echo "$str")
foo bar baz
$ (arr=(foo bar baz); IFS=:; str="${arr[*]}"; echo "$str")
foo:bar:baz
Note that the same thing does not occur for "$*":
$ (set -- foo bar baz; IFS=:; str=$*; echo "$str")
foo:bar:baz
$ (set -- foo bar baz; IFS=:; str="$*"; echo "
On Thu, Aug 29, 2013 at 12:42 PM, DJ Mills wrote:
> When using a non-default IFS (a default IFS would trim them), a single
> empty trailing field is ignored for read -a.
>
> IFS=: read -rd '' -a arr < <(printf %s ':foo:bar:'); printf '<%s> '
> "${arr[@]}"; echo
> <>
>
> I would expect the outpu
When using a non-default IFS (a default IFS would trim them), a single
empty trailing field is ignored for read -a.
IFS=: read -rd '' -a arr < <(printf %s ':foo:bar:'); printf '<%s> '
"${arr[@]}"; echo
<>
I would expect the output to be:
<> <>
Hi.
> Date: Tue, 20 Aug 2013 11:02:24 -0400
> From: Greg Wooledge
> To: Aharon Robbins
> Cc: bug-bash@gnu.org
> Subject: Re: feature request: file_not_found_handle()
>
> On Tue, Aug 20, 2013 at 05:48:12PM +0300, Aharon Robbins wrote:
> > In article you write:
> > >1) PATH is used by the kernel