On 7/15/19 6:19 PM, astian wrote:
>> I doubt it makes any difference to the timing, which I think
>> Chet has already answered, but it is worth pointing out that these
>> two commands ...
>>
>> printf '%s\n' "`printf %s "$i"`"
>> printf '%s\n' "$(printf %s
On Jul 16 2019, Ilkka Virta wrote:
> On 15.7. 20:49, Robert Elz wrote:
>
>> printf '%s\n' "`printf %s "$i"`"
>> printf '%s\n' "$(printf %s "$i")"
>>
>> aren't actually the same. In the first $i is unquoted, in the second it is
>> quoted.
>
> Huh, rea
On 15.7. 20:49, Robert Elz wrote:
printf '%s\n' "`printf %s "$i"`"
printf '%s\n' "$(printf %s "$i")"
aren't actually the same. In the first $i is unquoted, in the second it is
quoted.
Huh, really? It looks to me like the first one treats $i
Robert Elz:
> Date:Wed, 10 Jul 2019 17:21:00 +
> From:astian
> Message-ID:
>
> I doubt it makes any difference to the timing, which I think
> Chet has already answered, but it is worth pointing out that these
> two commands ...
>
> printf '
Date:Wed, 10 Jul 2019 17:21:00 +
From:astian
Message-ID:
I doubt it makes any difference to the timing, which I think
Chet has already answered, but it is worth pointing out that these
two commands ...
printf '%s\n' "`printf %s "$i"`"
On 7/13/19 1:36 PM, astian wrote:
> Chet Ramey:
>>> - $() seems generally slightly slower than ``, but becomes
>>> pathologically
>>> so when preceded with "eval set -- ...".
>>
>> It is slightly slower -- POSIX requires that the shell parse the contents
>> of $(...) to determine that i
Dear Chet Ramey, thanks for the explanations, I assume you were able to
reproduce the issue.
First a warning that I forgot to include in the previous email: the quoted
excerpts of the gprof tables correspond to a slightly modified test script in
which I tried to magnify the overhead in order to mo
On 7/10/19 1:21 PM, astian wrote:
> Bash Version: 5.0
> Patch Level: 3
> Release Status: release
>
> Description:
>
> I discovered a curious performance degradation in the combined usage of the
> constructs "eval set -- ..." and new-style command substitution. In short,
> setting the posi