On 8/14/19 3:10 PM, Eric Blake wrote:
On 8/14/19 7:01 AM, Harald Dunkel wrote:Shouldn't it be just -nNo, because 'echo' is one of the few exceptions to the rule, in that POSIX specifically mandates that it NOT recognize -- as an end-of-options marker.
But then the "-n" shouldn't be printed either, should it? "-n" is a valid command line option for coreutil's /bin/echo (and the bash builtin, too). This doesn't seem reasonable. Posix says also "Implementations shall not support any options", i.e. coreutil's echo is violating Posix, anyway. Regards Harri https://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html
