Package: xorg-x11-utils Version: 7.1-2 The xprop man pages read in part:
A $ followed by a number n causes field number n to be displayed. [...] $n+ will display field number n then a comma then field number n+1 then another comma then ... until the last field defined. [...] This is useful for a property that is a list of values. This is not true. $n+1 displays field number then a comma THEN A SPACE then field number n+1 and so on. For instance, using xprop on a console window: $ xprop -id <winID> 8s "=\$0+\n" WM_CLASS WM_CLASS(STRING)="gnome-terminal", "Gnome-terminal" The insertion of this extra space (which you cannot prevent with a custom f option) is very important when using sed or cut on xprop's output. The quick but lame fix is to amend the man pages to read: A $ followed by a number n causes field number n to be displayed. [...] $n+ will display field number n then a comma and a space then field number n+1 then another comma and space then ... until the last field defined. [...] This is useful for a property that is a list of values. The better fix is to provide a way of specifying the separator in the format, maybe as an 'fls' option (for "format list separator"). Daniel U. Thibault, M.Sc.² Informaticien scientifique, CME-PSC, Centre de recherches de Valcartier Recherche et développement pour la défense Canada / Gouvernement du Canada daniel.thiba...@drdc-rddc.gc.ca<mailto:daniel.thiba...@drdc-rddc.gc.ca> / Tél: 418-844-4000x4245 Téléc: 418-844-4538 daniel.thiba...@forces.gc.ca<mailto:daniel.thiba...@forces.gc.ca> / Tél: 418-844-4000x4245 Téléc: 418-844-4538 Computer Scientist, MCCS-SPC, Valcartier Research Centre Defence Research and Development Canada / Government of Canada daniel.thiba...@drdc-rddc.gc.ca<mailto:daniel.thiba...@drdc-rddc.gc.ca> / Tel: 418-844-4000x4245 Fax: 418-844-4538 daniel.thiba...@forces.gc.ca<mailto:daniel.thiba...@forces.gc.ca> / Tel: 418-844-4000x4245 Fax: 418-844-4538 DRDC is an agency of the Department of National Defence / RDDC est une agence du ministère de la Défense nationale