In lua, I'm reading a text file, which lines may contain single or double quotes such as: "L'habitude commence comme un fil de soie et devient vite un câble d'acier" - Proverbe espagnol
the lines are used as such:
local cmd = 'zenity --question --no-wrap --title "pause" --text ' .. string.format("%q", quote)
print (cmd)
local retVal = os.execute(cmd)
Everything works fine, but at the very end of string there the character \13 is suffixed to the string, which I do not want.
zenity --question --no-wrap --title "pause" --text "L'habitude commence comme un fil de soie et devient vite un câble d'acier. - Proverbe espagnol\13"
And zenity windows displays this \13 char.
How to solve this?
Thanks