Skip to content

--list --dclick-action drops empty values #301

@step-

Description

@step-

When I use --list --dclick-action and the list includes some empty values, the parameters of the dclick-action command are missing the empty values.

yad version 14.1

printf '%s\n' A 1 2 B 1 '' C '' '' D '' 2 | yad --height=200 --list --column={1..3} --print-all --dclick-action='sh -c "set -- %s; echo argc = $#" --'

Below I have rearranged list output and double-click output side by side.
I expected to see "argc = 3" for all rows A through D, but clearly the click action drops empty cells.

 A|1|2| argc = 3
 B|1||  argc = 2
 C|||   argc = 1
 D||2|  argc = 2

Using "$@" instead of %s did not help.
Adding --quoted-output did not help (although it shouldn't be necessary to use quoted output to get the correct number of arguments).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions