Bug#644285: lsb-base: Disabled escape sequences
Jonathan Nieder <[email protected]>
| Newsgroups | gmane.linux.debian.devel.lsb |
|---|---|
| Message-ID | <20120530165847.GA15519__48167.1218680733$1338397399$gmane$org@burratino> |
Hi, Mats Erik Andersson wrote: > On the other hand the non-portability of > built-in "echo" must be taken care of with "/bin/echo". "printf" (in POSIX) accepts a %b specifier to emulate old-fashioned echo. So all the behaviors are available: bash POSIX sh echo printf '%s\n' echo -n printf '%s' echo -e printf '%b\n' echo -ne printf '%b' Of course this is orthogonal to the question of which one the LSB init functions should use. I have no opinion on that.