mIRC Home    About    Download    Register    News    Help

Print Thread
#136473 28/11/05 05:30 PM
Joined: Apr 2004
Posts: 871
Sat Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2004
Posts: 871
It seems that the $* identifier does not work well when used multiple times in one piece of code.. For example:

Code:
//tokenize 32 a b c | echo -a $* | tokenize 32 d e f g | echo -a $*

This produces "a" "b" "c" "g" instead of the expected "a" "b" "c" "d" "e" "f" "g".. in general, the second $* always ignores the first N tokens produced by the first $*. I think I'd be rather nice if mIRC would reset the counter for $* when going to the next command.. smile

(posted under feature suggestions rather than bug reports as $* is undocumented)


Saturn, QuakeNet staff
#136474 28/11/05 06:35 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
This has been suggested and reported before.


Gone.
#136475 28/11/05 06:47 PM
Joined: Apr 2004
Posts: 871
Sat Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2004
Posts: 871
Ah well, now if only the search function would work properly.. (I know, that has been suggested before too *sigh*)


Saturn, QuakeNet staff
#136476 29/11/05 03:45 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Yes, I wish the search function would work properly too, it's really a shame because it's so important for these particular boards. When I was a novice at scripting, I searched the database extensively, absorbing all the knowledge there was at hand.

I did a search for tokenize, as I figured if $* is mentioned, tokenize will be mentioned as well in the same thread/post.


Gone.

Link Copied to Clipboard