My bash script
#!/bin/bash
main(){
name=${1:-you}
echo "One for $name, one for me."
}
main "@a"
I'm trying to pass the parameters from zsh terminal like this
bash tw_fer.sh Adem
It always returns @a nothing else. How can I print the argument that I've passed?
zshinvolved in your code. You just pass tomainthe string@a, and this is output in theechostatement. What effect would you have expected?