Let's practice using and sourcing shell variables
- Source
projectAlias.sh
by running the commandsource projectAlias.sh
- View the current aliases by running the command
alias
- What do you see?
- Use the
fooTOP
alias by typing it in the terminal? - What do you see?
- Now use the
barTOP
alias by typing it in the terminal? - Did it work? If not explain why and figure out a way you could fix it?
- Let's use the sourced variables in a statement:
echo "I enjoy eating an $fruit after a tasty $meal for dinner"
- What do you see?
- Use the shell variables you sourced earlier to print a statement in Bash you created yourself.