Thread (8 messages) flat view 8 messages, 4 authors, 2016-06-15

Re: [BUGS] test failure in t4014-format-patch.sh with master

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2016-06-15 22:44:29


On Thu, 17 Apr 2008, Björn Steinbrink wrote:
Debian has its own dash which is supposed to be a lightweight
alternative to bash and "for checking POSIX compliance of scripts"
(quote from the packages description). I don't happen to know off-hand
whether POSIX says that echo should default to -e, but dash seems to do
that:

$ dash
$ a="hello\nhi"
$ echo $a
hello
hi
Ahh. So that "echo" should just be replaced with a 'printf "%s\n"' 
instead? 

We have a _lot_ of "echo"s though. I suspect the only ones we'd ever catch 
are the ones explicitly tested for. I suspect that the dash echo is just 
broken.

		Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help