mirror of
https://github.com/notwa/rc
synced 2024-11-05 08:19:03 -08:00
document echo2
This commit is contained in:
parent
364a0eff66
commit
e20d2557c9
1 changed files with 9 additions and 0 deletions
9
sh/echo2
9
sh/echo2
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue