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