bug-bash
[Top][All Lists]
Advanced

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

Re: Incorrect handling of echo in POSIX mode


From: Robert Elz
Subject: Re: Incorrect handling of echo in POSIX mode
Date: Sat, 16 Mar 2024 20:52:09 +0700

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 <backslash> character, the results
        are implementation-defined.

into:

string  A string to be written to standard output. If the first operand
        consists of a '-' followed by one or more characters from the set
        {'e', 'E', 'n'}, or if any of the operands contain a <backslash>
        character, the results are implementation-defined.

So even if it is technically a posix violation to interpret -e now,
sometime later this year (probably, next year, maybe) it will not be.

kre




reply via email to

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