Re: Incorrect handling of echo in POSIX mode

2024-03-16 Thread Robert Elz
In addition to what Chet said, I'd also point out that the forthcoming POSIX version has altered this text in the current standard: string A string to be written to standard output. If the first operand is -n, or if any of the operands contain a character, the results are impleme

Re: Incorrect handling of echo in POSIX mode

2024-03-15 Thread Chet Ramey
On 3/15/24 11:37 AM, Clint Hepner wrote: Bash Version: 5.2 Patch Level: 26 Release Status: release Description: In POSIX mode, echo incorrectly processes -e as an option unless xpg_echo is also enabled. It always has. I wasn't willing to sacrifice that much compatibility when bash is ru

Incorrect handling of echo in POSIX mode

2024-03-15 Thread Clint Hepner
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: darwin19.6.0 Compiler: gcc Compilation CFLAGS: -g -O2 uname output: Darwin hemma.home 19.6.0 Darwin Kernel Version 19.6.0: Tue Jun 21 21:18:39 PDT 2022; root:xnu-6153.141.66~1/RELEASE_X86_64 x86_64 Machine Type