This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Question

Old posts that have not been replied to for several years.
Locked
]
]DnA[

Question

Post by ]DnA[ »

Sorry but I do not speak very well English

for whichever setting
example:

set lamer "]DnA[" = incorrect

What is the version corrected with the subject ]Dna[?

thanks :)
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

The [ is what's causing problems here. It is a special char in tcl that is used to execute commands, so if you want it to be part of a string without executing stuff you need to escape it some how...there's two ways to do that:
set lamer {]DnA[}
or
set lamer ]DnA\[
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Actualy is set lamer \]DnA\[
Once the game is over, the king and the pawn go back in the same box.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

You don't need the \ with a ].

It is only when the [ is not escaped, does the issue happen.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

I've tested it again and seems you are right. Guess I've tested first like: ]DnA[ and then added the \'s.. My appologies.
Once the game is over, the king and the pawn go back in the same box.
Locked