Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
base=(a b c)
symbols=($(echo "$base"))
function checkarg {
if [ $# -gt 0 ]; then
symbols=($(echo "$@"))
else
symbols=($(echo "$base"))
fi
}
start(){
checkarg $@
for symbol in ${symbols}
do
echo $symbol
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.