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

Bug#644285: lsb-base: Disabled escape sequences



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.



Reply to: