I am having trouble with some escape characters. I have a script that expects:
on the command line. But I can't seem to escape the square brackets. My code was:
expect "CONFIRM \[y\]: "
I have tried a number of escape sequences for the square brackets such as:
expect "CONFIRM \: "
but have got nowhere. I have got this working before but have lost the file. It was something quite annoying with a lot of back/forward slashes. Any help would be greatly appreciated, thanks for looking.
Needed to be:
expect "CONFIRM \\\[y\\\]: "
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.