# I have some trouble with --select-action or --dclick-action when the string contains some quotation mark " (double q.m.)
# Data returned by --print-all are always correct
# Strings containing single quote ' are correct.
# two quotation marks " return abc i.e. the " are removed from %s
echo 'a"b"c'|yad --list --column=uno --width=1000 --height=200 --print-all --select-action='bash -c "echo %s"'
# one (unpaired) quotation mark " : no action and no data returned (internal error ?)
echo 'ab"c'|yad --list --column=uno --width=1000 --height=200 --print-all --select-action='bash -c "echo %s"'
# one (unpaired) apostrophe ' : correct
echo "ab'c"|yad --list --column=uno --width=1000 --height=200 --print-all --select-action='bash -c "echo %s"'
# one escaped " : OK
echo 'ab\"c'|yad --list --column=uno --width=1000 --height=200 --print-all --select-action='bash -c "echo %s"'
# string translated to html code is correct: Idisplay ok, return ab"c
echo 'ab"c'|yad --list --column=uno --width=1000 --height=200 --print-all --select-action='bash -c "echo %s"'
# I got this problem with a command like this one:
pgrep -a yad|yad --list --column=A --width=800 --height=200 --print-all --select-action='bash -c "echo %s"'
# Error: unexpected EOF
# and more with more complex strings
# tested with yad 9 and 10
Any ideas ? Thank you