Thomas Dickey dixit:
>> source="`echo "$source" | sed -e 's%/$%%'`/"
>>
>> You m̲u̲s̲t̲ ̲n̲o̲t̲ use double quotes both outside and inside of an
>> old-style command substitution: some shells pair them as
>> "`echo " and " | sed -e 's%/$%%'`/" instead of nesting, and
>> POSIX actively allows that.
On Sun, Jan 21, 2024 at 07:06:45PM +, Thorsten Glaser wrote:
> Hi,
>
> while scrolling through a diff to see if I can find the cause
> of a regression, I saw this (pasting only one example of it):
>
> source="`echo "$source" | sed -e 's%/$%%'`/"
>
> You m̲u̲s̲t̲ ̲n̲o̲t̲ use double quotes bot
Hi,
while scrolling through a diff to see if I can find the cause
of a regression, I saw this (pasting only one example of it):
source="`echo "$source" | sed -e 's%/$%%'`/"
You m̲u̲s̲t̲ ̲n̲o̲t̲ use double quotes both outside and inside of an
old-style command substitution: some shells pair them