mirror of
https://github.com/notwa/rc
synced 2024-06-01 15:33:07 -07:00
document echo2
This commit is contained in:
parent
364a0eff66
commit
e20d2557c9
9
sh/echo2
9
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user