# HG changeset patch # User catherine@localhost # Date 1210973788 14400 # Node ID f9196cf5ef5104d013c20ddfcbb4ae2b8129b8a5 # Parent 37bff80ef81691f316db0e92b127cc93caeb599c gonna mess with tempfiles diff -r 37bff80ef816 -r f9196cf5ef51 cmd2.py --- a/cmd2.py Fri May 16 17:17:26 2008 -0400 +++ b/cmd2.py Fri May 16 17:36:28 2008 -0400 @@ -147,7 +147,9 @@ 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