On Sun, 1 Apr 2012, Artur Tarassow wrote:
Am 01.04.2012 15:25, schrieb Allin Cottrell:
> On Sun, 1 Apr 2012, Artur Tarassow wrote:
>
>> There seems to be a bug using the --robust-hac option within a loop,
>> as can be seen using the example below.
>> I run current CVS on linux.
>>
>> ----------
>> open denmark
>> var 2 LRM LRY --robust-hac
>>
>> #Robust(-hac) option without exogenous
>> loop for i=1..1
>> var $i LRM LRY --robust-hac
>> endloop
>>
>> loop for i=1..1
>> var $i LRM LRY --robust
>> endloop
>> -------------------
>>
>> The error message is : "Invalid option '--robust-hac'"
>
> It works here. I think you have somehow entered a strange invisible
> character in the option string. If I copy the script directly from
> your email into Nedit, the first --robust-hac (outside the loop) is
> OK, but the second appears as
>
> --?robust-hac
>
> with a question-mark before the 'r'. In the gretl script editor, try
> deleting the option string and retyping it carefully.
>
> Allin Cottrell
>
Ok, that's weird, but it works ;) Thank you!
One further point: only '--robust' but not '-hac' appears coloured in
the script editor here.
I'm not sure how to make pattern-matching "greedy" in
gtksourceview (or even if it's possible). What you're
describing always happens when two option strings share the
first n characters. The --robust-hac option would have been
better named as just --hac.
Allin Cottrell