Re: [Lynx-dev] shell stuff

2024-01-21 Thread Thorsten Glaser
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.

Re: [Lynx-dev] shell stuff

2024-01-21 Thread Thomas Dickey
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

[Lynx-dev] shell stuff

2024-01-21 Thread Thorsten Glaser
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