Irssi core bugs

Notice: Undefined index: tasklist_type in /var/www/bugs.irssi.org/includes/class.tpl.php(128) : eval()'d code on line 85 Notice: Undefined index: tasklist_type in /var/www/bugs.irssi.org/includes/class.tpl.php(128) : eval()'d code on line 90
  • Status New
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category core
  • Assigned To No-one
  • Operating System Linux
  • Severity Very Low
  • Priority Normal
  • Reported Version Irssi SVN
  • Due in Version Undecided
  • Due Date Undecided
  • Votes 0
  • Private No
Attached to Project: Irssi core bugs
Opened by Wouter Coekaerts (coekie) - 2005-01-29
Last edited by Wouter Coekaerts (coekie) - 2005-07-15

FS#183 - \\\\; isn't parsed correctly in aliases or /eval

doing "/eval echo a \; echo b" you would expect two lines "a " and "b", but you get "a ; echo b".
The problem is in special-vars.c, in the macro is_split_char used in eval_special_string
<quote>
#define is_split_char(str, start)
((str)[0] == ';' && ((start) == (str) ||
((str)[-1] != '' && (str)[-1] != '$')))
</quote>
This only looks at the previous character, and doesn't check if that character is escaped. So if str[-1] and str[-2] are , it should return true, unless str[-3] is in which case it is false again, unless...
so clearly this splitting has be done another way :)

This task does not depend on any other tasks.

Loading...