Skip to content

Instantly share code, notes, and snippets.

@jcsalterego
Last active August 29, 2015 14:16
Show Gist options
  • Save jcsalterego/aae202962582b7963b32 to your computer and use it in GitHub Desktop.
Save jcsalterego/aae202962582b7963b32 to your computer and use it in GitHub Desktop.
sadhax
$ cat script.sh | bash -c 'cat - >/tmp/$$.sh; bash /tmp/$$.sh $@; rm -f /tmp/$$.sh' -- -v foobar
args are -v foobar
#!/bin/bash
echo "args are $@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment