The source code in chuck-1.2.1.3 that processes the argument to Machine.add is expecting to parse a filename and optional arguments using colons to separate the filename and arguments, but it also looks like it's trying to allow \: to escape a colon.<div>
<br></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="gmail_quote"><div class="im">On Fri, Oct 15, 2010 at 10:05 AM, Rebecca Fiebrink <span dir="ltr"><<a href="mailto:fiebrink@princeton.edu" target="_blank">fiebrink@princeton.edu</a>></span> wrote:<br>
</div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
Have any ChucK windows users figured out how to accomplish Machine.add with a fully-qualified path name that includes the drive letter?<br>
<br>
Machine.add("C:/Users/rebecca/<a href="http://tmp.ck" target="_blank">tmp.ck</a>") results in error<br>
"[C]: no such file or directory"</blockquote></div></div></div></blockquote><div><br></div><div>That happens because the colon is treated the separator between the file name and an argument.</div><div><br></div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="gmail_quote"><div><div class="h5"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">

and Machine.add("C\:/Users/rebecca/<a href="http://tmp.ck" target="_blank">tmp.ck</a>") results in error<br>
[<a href="http://tmp2.ck" target="_blank">tmp2.ck</a>]:line(2): unrecognized escape sequence '\:'<br>
<br></blockquote></div></div></div></blockquote><div><br></div><div>That happens, most probably, because the Chuck parser is attempting to translate escape sequences into characters, long before even constructing the call to Machine.add().</div>
<div><br></div><div>Try</div><div><br></div><div>   Machine.add("C\\:/Users/rebecca/<a href="http://tmp.ck">tmp.ck</a>")</div><div><br></div><div>that will let the escape sequence parse parse \\ into \, and then the argument parser will see \: and leave your filename alone.</div>
<div><br></div><div>-- rec --</div><div><br></div><div><br></div></div></div>