Skip to content

Instantly share code, notes, and snippets.

@thkoch2001
Created March 28, 2014 18:58
Show Gist options
  • Save thkoch2001/9840375 to your computer and use it in GitHub Desktop.
Save thkoch2001/9840375 to your computer and use it in GitHub Desktop.
import os
#os.execlp("termit", "termit", "-e", "bc") # runs bc [OK]
#os.execlp("termit", "termit", "-e", "bc --quiet") # fails OR runs bc --quiet [OK, runs bc --quiet]
#os.execlp("termit", "termit", "-e", "bc", "--quiet") # runs bc --quiet [FAIL, does not pass --quiet arg]
#os.execlp("termit", "termit", "-e", "vi *") # fails OR runs vi * (wildcard) [OK, * is passed as file name]
#os.execlp("termit", "termit", "-e", "vi", "*") # runs vi * (literal) [FAIL, does not pass literal * arg]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment