summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatherine Devlin <catherine.devlin@gmail.com>2008-05-16 17:36:28 -0400
committerCatherine Devlin <catherine.devlin@gmail.com>2008-05-16 17:36:28 -0400
commit77334a138f6c5f89a16853cc5a88e9f0859d03f2 (patch)
tree0051b61aa03659e1f0fa83877ee4e5713bd45119
parentf3256dce57178cb042b2dc0faac32901f252d013 (diff)
downloadcmd2-git-77334a138f6c5f89a16853cc5a88e9f0859d03f2.tar.gz
gonna mess with tempfiles
-rwxr-xr-xcmd2.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index 75867181..90a2b4dc 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -147,7 +147,9 @@ class Cmd(cmd.Cmd):
command = 'xclip -o -sel clip'
else:
command = 'xclip -sel clip'
- return subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE)
+ result = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE)
+ #TODO: need a better response to user who lacks xclip
+ return result
def onecmd(self, line):
"""Interpret the argument as though it had been typed in response