Created
January 15, 2018 20:13
-
-
Save mgedmin/a0d087193487a2d0c96f8fd8d5a6b29e to your computer and use it in GitHub Desktop.
/bin/sh, wat you doing?
This file contains hidden or 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
mg@platonas: ~ $ ./wat.sh | |
hi | |
1 | |
hi | |
2 | |
mg@platonas: ~ $ cat wat.sh | |
#!/bin/sh | |
x=1 | |
x=2 echo hi | |
echo $x | |
say() { | |
echo $* | |
} | |
x=1 | |
x=2 say hi | |
echo $x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment