mo/tests/function-args.env
2017-11-03 16:34:08 -05:00

17 lines
275 B
Bash

name=Willy
pipeTo() {
echo -n "$1" | "$2"
}
testArgs() {
printf "%d" "$#"
# Remove content. Note that when zero arguments are passed, this
# line does nothing and $1 will still be the content.
shift
# Display all arguments
printf " %q" "$@"
}