[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#821106: xprop man pages are misleading as far as f goes



control: reassign -1 x11-utils

On Fri, Apr 15, 2016 at 03:14:58PM +0000, Thibault, Daniel wrote:
> Package: xorg-x11-utils
> Version: 7.1-2

xprop is in x11-utils.  though that version you specified doesn't exist.
In the meantime I'm reassigning this bug to the correct package.
Also, the package you specified doesn't exist...
> 
>    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.thibault@drdc-rddc.gc.ca<mailto:daniel.thibault@drdc-rddc.gc.ca> / Tél: 418-844-4000x4245 Téléc: 418-844-4538
> daniel.thibault@forces.gc.ca<mailto:daniel.thibault@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.thibault@drdc-rddc.gc.ca<mailto:daniel.thibault@drdc-rddc.gc.ca> / Tel: 418-844-4000x4245 Fax: 418-844-4538
> daniel.thibault@forces.gc.ca<mailto:daniel.thibault@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
> 

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-

Attachment: signature.asc
Description: PGP signature


Reply to: