Skip to content

Instantly share code, notes, and snippets.

@xurizaemon
Created November 30, 2018 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xurizaemon/763436658dd941daa15989ed8e52b00e to your computer and use it in GitHub Desktop.
Save xurizaemon/763436658dd941daa15989ed8e52b00e to your computer and use it in GitHub Desktop.
urls & ampersands in shell env
$ ./test.sh http://example.org?a=b&c=d
[1] 7753
$1 is http://example.org?a=b
[1]+ Done ./test.sh http://example.org?a=b
$ ./test.sh "http://example.org?a=b&c=d"
$1 is http://example.org?a=b&c=d
#!/usr/bin/env bash
echo "\$1 is $1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment