Bash Scripting - Functions
Find the problem in this script:
myfunc() {
echo "$1 and $3"
}
myfunc apple bananamyfunc() {
echo "$1 and $3"
}
myfunc apple bananaapple and banana. So $1 = apple, $2 = banana, but $3 is not passed.$3 is not provided, it is empty, so echo prints "apple and " with nothing after.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions