
For 3 months now I've be writing a learn script:
1. http://dicinfo.sourceforge.net/
But now I've encountered an error that I can't seem to resolve (the only bug I think). If some one does a:
!l key bbb "bla" aaa
the word bla is saved on the text file without the "". If it one does:
!l key bbb "bla" " aaa
I get a "unmatched open quote in list" error. I'm getting the text to save a definition like this:
set phrase [lrange $text 1 end]
and later:
puts $fp "$time $nick $unikey $phrase"
I've red the tcl documentation but nothing works. Especially when a odd number of " (or other control characters) appear in the definition. My idea was to save the string as is learned on the text file, and later retrieve it in the same state.
Does any one has a clue how to do this? (there can be also """bla""" inside the definition?)