Joined: Thu Mar 06, 2008 8:36 pm
That's one way to do proper cross examinations. "goto start" is definitely wrong.
Here are a few other ways to accomplish it. Your flags method is cool but a little messy.resume
The resume command returns to the last line before a jump. In the case of a cross examine, it will return to the line right after the user pressed. This is the 'recommended' way, but that doesn't mean other ways aren't valid.
This is basically the same layout as yours with flags, just with less code. Variables
This is also similar to your flags method, but shows an interesting way to use variables to keep things a bit simpler.
Pay attention to the "set next BBB" and goto $next lines. Set next will store the text "BBB" in the variable called "next". Variables are just like flags, except they hold text instead of only being on and off. The command "goto $next" will replace $next with the value of next - such as AAA or BBB. And the goto will go to the right place.
Resume is probably the simplest, but it's good to know what variables and flags can do.
About your other issue, what text is failing? In future bug reports, please always include both the context (the script that failed, especially which line had the issue), and the error message (usually from lastlog). In all but very simple cases can I diagnose without both of those. I'm guessing this is another unicode issue, but have no way to see what.