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

Bug#490605: debian-policy: please discourage the usage of echo -n, and echo in general



Raphael Hertzog wrote:
For the second argument:

[ using bash ]
$ type printf
printf is a shell builtin
$ dash
$ type printf
printf is a shell builtin

There's no external executable needed.

but also "echo -n" is recognized by these tools.

I've interpreted the original bug report as a way to allow any
conform shell to be used.

OTOH it could be seen differently: as a way to educate user to
write conform scripts, and to simplify the reading of script
by non debian or non linux user.

[But I'm pretty sure that we will fail this last point:
IMHO it would port to lsb or other utilities similar to
debhelper, thus still requiring some insight into Linux
specific features]

ciao
	cate

PS: Anyway, it would be simple to move printf to /bin/



Reply to: