-
Notifications
You must be signed in to change notification settings - Fork 72
--list --dclick-action drops empty values #301
Copy link
Copy link
Open
Description
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).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels