Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.