I've come across a rather strange bug while trying to use a variable inside
a $"".

alias buggy {
    timer 1 set status_user22 foo
    local foo Enter something:
    local bar $"$foo"
}

alias notbuggy {
    timer 1 set status_user22 foo
    local foo $"Enter something:"
}

(STATUS_USER22 is not displayed on any of my status bars, incidentally.)

In /buggy, when the timer expires, the input prompt vanishes until one of
refresh_{inputline,screen,status} happens.  In /notbuggy, it doesn't.

Line 198 of input.c in EPIC4-1.0.1 calls expand_alias() to expand any
variables etc. in the prompt.  It normally works fine, but for some reason,
after a SET STATUS_* command, it ceases to expand until the next time a
refresh is done.  I suspect that the execution of the timer's block of code
somehow disturbs the block of code doing input, but since I can't figure
out how EPIC tracks what block of code it's executing, I'm really just
guessing.

I tested EPIC4pre2.504 through EPIC4-1.1.1; all display the bug.

-- 
Jeffrey Sean Connell __ |          - this space temporarily blank -
[EMAIL PROTECTED]   \/ | PGP key: http://www.canuck.gen.nz/~ankh/pgpkey.html
------------------------+----------------------------------------------------

_______________________________________________
List mailing list
[EMAIL PROTECTED]
http://epicsol.org/mailman/listinfo/list

Reply via email to