Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Just use sh, like system()

I had grand visions of being able to use shell aliases and functions, but
realized a bit too late that that those are generally only used if the shell if
interactive =(... and I had already verified that virtually every shell on earth
supports -c.

Signed-off-by: Jack Miller <jack@codezen.org>
  • Loading branch information...
commit b557f0c2c49b4798e0be6ee33fd456c7fb54ac40 1 parent e0a40de
@themoken authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  canto/utility.py
View
3  canto/utility.py
@@ -87,8 +87,7 @@ def silentfork(path, href, text, fetch):
else:
path = path.replace("%u", href)
- shell = os.getenv("SHELL")
- os.execv(shell, [shell, "-c", path])
+ os.execv("/bin/sh", ["/bin/sh", "-c", path])
sys.exit(0)
if text:
Please sign in to comment.
Something went wrong with that request. Please try again.