Created
March 10, 2016 17:10
-
-
Save cxreg/93a522c4a7b464780fa6 to your computer and use it in GitHub Desktop.
wtf, bash
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
dolszewski@blackheat:~$ echo test | read somevar | |
dolszewski@blackheat:~$ echo $somevar | |
dolszewski@blackheat:~$ read somevar < <(echo test) | |
dolszewski@blackheat:~$ echo $somevar | |
test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment