ssanthosh243 / semicomplete

Automatically exported from code.google.com/p/semicomplete
0 stars 0 forks source link

xdotool reports a bug with "search --pid" #69

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
*** To replicate the problem:

Run the following command:

xdotool search --pid 3477   # You can substitute the PID with a real one.

*** Expected output:

* Case #1: The window exists for the PID:

I expect to see a list of one or more PIDs (to stdout), with return code 0.

* Case #2: The window does not exist for the PID, or the PID does not exist:

I expect to see no output with return code 1.

*** What actually happens:

* Both case #1 and case #2:

The output lines (to stdout) and the return code are correct, but also the 
following line (to stderr) is shown:

Can't consume 1 args; are only 0 available. This is a bug.

* Product version:

xdotool version 2.20110530.1

* Operating system:

Linux Ubuntu 12.04 fully updated

Original issue reported on code.google.com by PaddyLandau on 7 Oct 2012 at 10:23