-
-
Save solarkraft/0b8974d5c19d5563d0bfa1c3d3c04103 to your computer and use it in GitHub Desktop.
Shell scripting is awesome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
addstuff=y; true && echo "a b$([ $addstuff = "y" ] && echo \" c\")" | |
# a b" c" | |
addstuff=y; stufftoadd=" c d"; true && echo a b$([ $addstuff = "y" ] && echo $stufftoadd) | |
# a bc d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment