Summary: | net-misc/x2goserver: invalid `echo -n` usage | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c> |
Component: | Current packages | Assignee: | Gentoo NX Server project <nx> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | idl0r |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=668 | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=527848 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Lars Wendler (Polynomial-C) (RETIRED)
2014-11-06 16:20:03 UTC
Oh, I forgot to mention that this only happens when /bin/sh points to dash. x2goserver is broken. you cannot rely on the -n option to echo. http://pubs.opengroup.org/onlinepubs/009604599/utilities/echo.html "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." "On XSI-conformant systems, if the first operand is -n, it shall be treated as a string, not an option. The following character sequences shall be recognized on XSI-conformant systems within any of the arguments:" "DASH Description DASH is a POSIX-compliant implementation of /bin/sh that aims to be as small as possible. It does this without sacrificing speed where possible. In fact, it is significantly faster than bash (the GNU Bourne-Again SHell) for most tasks." So IMHO "-n" should be supported and work here as expected. (In reply to Christian Ruppert (idl0r) from comment #3) > http://pubs.opengroup.org/onlinepubs/009604599/utilities/echo.html > > "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." > > "On XSI-conformant systems, if the first operand is -n, it shall be treated > as a string, not an option. The following character sequences shall be > recognized on XSI-conformant systems within any of the arguments:" > > "DASH > Description > > DASH is a POSIX-compliant implementation of /bin/sh that aims to be as small > as possible. It does this without sacrificing speed where possible. In fact, > it is significantly faster than bash (the GNU Bourne-Again SHell) for most > tasks." > > So IMHO "-n" should be supported and work here as expected. Hm, or not.. "APPLICATION USAGE" seems to clarify that. Upstream fixed this issue: http://code.x2go.org/gitweb?p=x2goserver.git;a=patch;h=90bbbb6f9c21386c4d576e0f017c59a25aa7de9b Upstream seems busy with reorganization stuff, so I added the patch in x2goserver-4.0.1.18-r2! |