Skip to content

Instantly share code, notes, and snippets.

@cxreg
Created March 10, 2016 17:10
Show Gist options
  • Save cxreg/93a522c4a7b464780fa6 to your computer and use it in GitHub Desktop.
Save cxreg/93a522c4a7b464780fa6 to your computer and use it in GitHub Desktop.
wtf, bash
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