Posts: 218
Threads: 60
Joined: Mar 2019
BYOND Username: polivilas
How the hell do you escape characters for DWAINE? For example, piping a '^' character is near impossible -
Code:
echo #!|n^ ^ test1
echo #!|n|^ ^ test2
echo #!|n\^ ^ test3
gets you this output - not entirely what I expected:
Same problem applies to escaping newlines - there doesn't seem to be a way to do it:
Code:
echo #!|n||n ^ test4
echo #!|n\|n ^ test5
echo #!|n\n ^ test6
Gives me a output of
, and once again, that's not what I want.
I'm I missing something stupid? Is this intentional? help
Posts: 685
Threads: 33
Joined: Feb 2016
BYOND Username: CyberTripping
Character Name: Casey Batts
The problem with typing carets is a known, longstanding issue. The problem is that dwaine seems to always interpret carets as intention to save whatever the rest of the command is to a file. This means things such as scripts that save files on their own don't seem to be possible, since the ^ character just can't be typed. I haven't found a way to circumvent this when fucking with dwaine, but someone wiser like Zamujasa might have figured something out. I doubt it, though.
Presumably this applies for all other characters that are interpreted as formatting, like your newline example shows. Guessing it's an unintended oversight of the way dwaine was coded.
Posts: 1,283
Threads: 91
Joined: Sep 2013
(04-06-2019, 05:44 PM)cyberTripping Wrote: but someone wiser like Zamujasa might have figured something out
indeed:
(04-05-2019, 01:02 AM)polivilas Wrote: How the hell do you escape characters for DWAINE?
you dont
Posts: 218
Threads: 60
Joined: Mar 2019
BYOND Username: polivilas
04-07-2019, 05:07 PM
(This post was last modified: 04-07-2019, 05:13 PM by polivilas. Edited 1 time in total.)
By code diving i found out you CAN indeed (admittedly ghetto) escape ^ character - simply envelop your echo in ""'s
newline escaping is still a mystery