Skip to content

Instantly share code, notes, and snippets.

@fstamour
Created June 19, 2013 07:22
Show Gist options
  • Select an option

  • Save fstamour/5812272 to your computer and use it in GitHub Desktop.

Select an option

Save fstamour/5812272 to your computer and use it in GitHub Desktop.
Really hacky shell snippet, could be used to get specific data from subshell to parent shell.
BLAH=$(( (echo out >&1; echo err >&2; echo other >&3;) 1>/dev/null ) 3>&1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment