bug-bash
[Top][All Lists]
Advanced

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

Re: splitting/whitespace in expansions of ${*} vs ${*/}


From: Chet Ramey
Subject: Re: splitting/whitespace in expansions of ${*} vs ${*/}
Date: Fri, 7 Apr 2017 19:43:22 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.0

On 4/4/17 3:29 PM, Grisha Levit wrote:
> There are a few small regressions in the latest devel relative to the
> previous two commits but they're all rather exotic. Again, sorry if this
> is still WIP/too minor:
> 
> CTLESC present in output (even with default IFS)
> 
>    $ set -- 1; unset var; printf ${var-${*:1}} | xxd
>    00000000: 0131                                     .1
> 
>    $ set -- 1; unset var; : ${var=${*:1}}; printf "$var" | xxd
>    00000000: 0131                                     .1
> 
> Not splitting (with default IFS):
> 
>    $ set -- '1 1'; unset a b; printf '<%s>' ${a=$*} ${b=${*:1}}
>    <1><1><1 1>

Thanks, these are fixed.
> 
> A few more cases below:

I'll look at these.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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