ID:105665
 
BYOND Version:479
Operating System:Windows Vista Home Basic
Web Browser:Firefox 3.6.13
Applies to:DM Language
Status: Verified

A member of our crack team of bug testers has verified that this issue is reproducible, and has handed it off to the development team for investigation.
Descriptive Problem Summary:
Text string verb arguments are being parsed differently depending on whether they are input via the command line or via the popup input box.
Presumably, a text string should be treated the same regardless of how it is passed as an argument.
I have discussed this issue with Tom, and he asked me to post it here.

Numbered Steps to Reproduce Problem:
Compile a program including the following snippet:
mob/verb/test(t as text) src << "1-[t]-2"

case 1: Click the "test" verb and in the input box, enter the string "\\".
case 2: On the command line, type "test [space] \\ [enter]"

Expected Results:
both cases output "1-\\-2"

Actual Results:
case 1: "1-\\-2"
case 2: "1-\-2"
Looks like the popup input is escaping macros and the command line isn't. I'm not sure we have any need to parse macros there so I think the best bet is to always escape them.