1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 08:19:03 -08:00

document echo2

This commit is contained in:
Connor Olding 2021-08-01 08:41:31 -07:00
parent 364a0eff66
commit e20d2557c9

View file

@ -4,6 +4,15 @@
# YES_DASH # YES_DASH
echo2() { ### @- 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=' ' local IFS=' '
printf "%s\n" "$*" >&2 printf "%s\n" "$*" >&2
} }