values for zenity --list cannot begin with a dash (-)

Bug #537371 reported by Karel Vervaeke
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zenity
New
Wishlist
zenity (Debian)
Confirmed
Unknown
zenity (Ubuntu)
Triaged
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: zenity

lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10

zenity --version
2.28.0

apt-cache policy zenity
zenity:
  Installed: 2.28.0-0ubuntu2
  Candidate: 2.28.0-0ubuntu2
  Version table:
 *** 2.28.0-0ubuntu2 0
        500 http://be.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

to reproduce:
zenity --list --column flags "-foo" "-bar"
This option is not available. Please see --help for all possible usages.

workaround:
You can work around it by adding a space in front (but then the space becomes part of the selected value, so you should remove the space later)
zenity --list --column flags " -foo" " -bar"

suggested solution:
commands like 'cp', 'rm' and many more use the convention that everything after "--" is interpreted literally (no more flags). If zenity also did this you could write
zenity --list --column flags -- -foo -bar
(Other software requires you to write -- before every argument that needs escaping. e.g. zenity --list --column flags -- -foo -- -bar)

Revision history for this message
Karel Vervaeke (karel-vervaeke) wrote :

Also posted to bugzilla.gnome.org:

https://bugzilla.gnome.org/show_bug.cgi?id=612586

(zenity doesn't use launchpad for bugtracking but apparently I can still file bugs here :-/)

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for the report, linking the upstream one.

Changed in zenity (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
importance: Undecided → Low
status: New → Triaged
Changed in zenity:
importance: Unknown → Wishlist
status: Unknown → New
Changed in zenity (Debian):
status: Unknown → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.