|
(0000018)
|
|
administrator
|
2012-05-06 03:12
(edited on: 2012-05-06 03:16) |
|
That's not a bug. It should be "} | ; comment" and the comment will span all the way to the next pipe (or end of line, whichever is first).
mIRC is buggy when it comes to brackets:
Try this:
alias test {
if (1) { noop } echo -a I will print (1)
if (0) { noop } echo -a I will not (2)
if (1) { noop } | echo -a I will print (3)
if (0) { noop } | echo -a I will print (4)
}
The pipe is actually required. Otherwise the behavior is undefined. (It was actually changed around 6.2 or so, so it's also be unreliable. I highly advise not relying on this working as you expect in future versions of mIRC.)
|
|