How to escape $?...

How to escape sequences like '$?', '?'  in command line?
I have a construct like this:

|Xdialog --yesno "really delete???\n%%f" 7 0; sh -c "if [ $? == 0 ]; then kdesu 'rm -rf %f'; fi"

It works on the last Version of emelfm2, but not on the newest.
1. There is no '???' in the Xdialog-message, tried '\?': nothing
2. I had to replace '\n' to '\\n' for a line break, this works
3. '$?' results in nothing

What can I do?
Thanks, Hans Durast



--
Users can unsubscribe from the list by sending email to 
emelfm2-request@xxxxxxxxxxxxx with 'unsubscribe' in the subject field or by 
logging into the web interface.

Other related posts: