From e20d2557c94b4533e330cc0256a4fb12f940eed0 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sun, 1 Aug 2021 08:41:31 -0700 Subject: [PATCH] document echo2 --- sh/echo2 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sh/echo2 b/sh/echo2 index 8b9103e..ec841f1 100644 --- a/sh/echo2 +++ b/sh/echo2 @@ -4,6 +4,15 @@ # YES_DASH echo2() { ### @- + ### print arguments joined by spaces to stderr without parsing anything. + ### + ### ``` + ### $ echo -e 'this\nthat' those + ### this + ### that those + ### $ echo2 -e 'this\nthat' those + ### -e this\nthat those + ### ``` local IFS=' ' printf "%s\n" "$*" >&2 }