Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [RFC] war on echo in scripts

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:49:06

Jonathan Nieder [off-list ref] writes:
Junio C Hamano wrote:
quoted
Jonathan Nieder [off-list ref] writes:
quoted
quoted
+echo() {
+	printf '%s\n' "$*"
+}
As long as we don't have "echo -n" and "echo -e", this should
work, but...
Yes, it’s ugly.  And it could make for surprises in user scripts.
The latter could be avoided with "s/echo/sane_echo/"; we do that already
for grep don't we?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help