Skip to content

Instantly share code, notes, and snippets.

@ramarnat
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save ramarnat/9093803 to your computer and use it in GitHub Desktop.

Select an option

Save ramarnat/9093803 to your computer and use it in GitHub Desktop.
$ cat /bin/sudo
#!/bin/bash
while getopts ":a:" opt; do
case $opt in
\?)
shift
;;
esac
done
shift $((OPTIND-1))
exec "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment