Thread (2 messages) flat view 2 messages, 2 authors, 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:
quoted hunk
Hmm, maybe something like this would be easier.

Signed-off-by: Jonathan Nieder <redacted>
---
diff --git a/git-sh-setup.sh b/git-sh-setup.sh
index 6131670..b38b40b 100644
--- a/git-sh-setup.sh
+++ b/git-sh-setup.sh
@@ -39,6 +39,10 @@ git_broken_path_fix () {
 
 # @@BROKEN_PATH_FIX@@
 
+echo() {
+	printf '%s\n' "$*"
+}
As long as we don't have "echo -n" and "echo -e", this should
work, but...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help