Skip to content

Instantly share code, notes, and snippets.

@mattintosh4
Last active August 29, 2015 14:23
Show Gist options
  • Save mattintosh4/a2ac97711bf4c5065d03 to your computer and use it in GitHub Desktop.
Save mattintosh4/a2ac97711bf4c5065d03 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
case ${SHELL} in
*bash)
BASH=${SHELL}
;;
*)
BASH=`PATH=/usr/bin:/bin; which bash`
;;
esac
${BASH} --version
$ bash <(curl -sL 'https://gist.github.com/mattintosh4/a2ac97711bf4c5065d03/raw/gistfile1.sh')
$ bash <(wget -qo- 'https://gist.github.com/mattintosh4/a2ac97711bf4c5065d03/raw/gistfile1.sh')
$ sh /dev/fd/0 <<!
`curl -sL 'https://gist.github.com/mattintosh4/a2ac97711bf4c5065d03/raw/gistfile1.sh'`
!
$ sh /dev/fd/0 <<!
`wget -qo- 'https://gist.github.com/mattintosh4/a2ac97711bf4c5065d03/raw/gistfile1.sh'`
!
$ sh /dev/stdin <<!
`curl -sL 'https://gist.github.com/mattintosh4/a2ac97711bf4c5065d03/raw/gistfile1.sh'`
!
$ sh /dev/stdin <<!
`wget -qo- 'https://gist.github.com/mattintosh4/a2ac97711bf4c5065d03/raw/gistfile1.sh'`
!
$ curl -sL 'https://gist.github.com/mattintosh4/a2ac97711bf4c5065d03/raw/gistfile1.sh' | bash /dev/fd/0
$ wget -qo- 'https://gist.github.com/mattintosh4/a2ac97711bf4c5065d03/raw/gistfile1.sh' | bash /dev/fd/0
$ curl -sL 'https://gist.github.com/mattintosh4/a2ac97711bf4c5065d03/raw/gistfile1.sh' | bash /dev/stdin
$ wget -qo- 'https://gist.github.com/mattintosh4/a2ac97711bf4c5065d03/raw/gistfile1.sh' | bash /dev/stdin
GNU bash, version 4.3.39(1)-release (armv7l-unknown-linux-gnueabihf)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ bash <(xclip -out -sel clip)
$ bash <(curl -sL "`xclip -out -sel clip`")
$ bash <(wget -qo- "`xclip -out -sel clip`")
$ git clone https://gist.github.com/a2ac97711bf4c5065d03.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment