From: Me Date: Sun, 10 Aug 2014 05:42:19 +0000 (-0400) Subject: don't drop user input after spaces when attempting eval X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=20fc51b989f7793b032b379aed909680f2654546;p=rainbowstream.git don't drop user input after spaces when attempting eval --- diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index c66ae9a..3d154ca 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -1520,7 +1520,7 @@ def reset(): printNicely(magenta('Need tips ? Type "h" and hit Enter key!')) g['reset'] = False try: - printNicely(str(eval(g['cmd']))) + printNicely(str(eval('%s %s' % (g['cmd'], g['stuff'])))) except Exception: pass