mirror of
https://github.com/tests-always-included/mo.git
synced 2024-12-24 18:36:39 +00:00
ad98577c42
Old way: functionName CONTENT argument1 argument2 New way: echo -n "$CONTENT" | functionName argument1 argument2 This follow the Unix style more closely.
14 lines
166 B
Bash
14 lines
166 B
Bash
name=Willy
|
|
MO_ALLOW_FUNCTION_ARGUMENTS=true
|
|
|
|
pipeTo() {
|
|
cat | "$1"
|
|
}
|
|
|
|
testArgs() {
|
|
printf "%d" "$#"
|
|
|
|
# Display all arguments
|
|
printf " %q" ${@+"$@"}
|
|
}
|