1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-06-01 15:33:07 -07: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
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
}