Gotchas
Expansions
From Expansions
Go to text ā
- "~" - does note expand in quotes.
- instead use "$HOME"
Control flow
From Return in Paranthesis Does Not Return from Function
Go to text ā
hi() {
# Return wont work as expected since it will exit out of parenthesis
# and not the hi function. Allowing this method to continue further.
echo "blah" | grep o1 || (echo "nope"; return 1)
echo "FINISHED in HI"
}
hi
Children