This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_extPart_001_01C076AB.AC295910
Content-Type: text/plain;
	charsetso-8859-1"

Greetings,

I can't seem to send a command to the shell that contains ".  Silly attempts
that demonstrate the problem:


irb(main):002:0> %x{cmd /c "cd && dir *.txt"}
Syntax error: Unterminated quoted string
""
irb(main):003:0> %x{cmd /c \"cd && dir *.txt\"}
Syntax error: Unterminated quoted string
""


vital statistics:
Windows NT 4.0 SP6

D:\Code>ruby --version
ruby 1.6.1 (2000-10-05) [i386-cygwin]

What obvious thing am I overlooking?
Thanks,

Joe Swatosh

------_extPart_001_01C076AB.AC295910
Content-Type: text/html;
	charsetso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2651.75">
<TITLE>Trouble with %x{} containing quotation marks</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Greetings,</FONT>
</P>

<P><FONT SIZE=2>I can't seem to send a command to the shell that contains &quot;.&nbsp; Silly attempts that demonstrate the problem:</FONT>
</P>
<BR>

<P><FONT SIZE=2>irb(main):002:0&gt; %x{cmd /c &quot;cd &amp;&amp; dir *.txt&quot;}</FONT>
<BR><FONT SIZE=2>Syntax error: Unterminated quoted string</FONT>
<BR><FONT SIZE=2>&quot;&quot;</FONT>
<BR><FONT SIZE=2>irb(main):003:0&gt; %x{cmd /c \&quot;cd &amp;&amp; dir *.txt\&quot;}</FONT>
<BR><FONT SIZE=2>Syntax error: Unterminated quoted string</FONT>
<BR><FONT SIZE=2>&quot;&quot;</FONT>
</P>
<BR>

<P><FONT SIZE=2>vital statistics:</FONT>
<BR><FONT SIZE=2>Windows NT 4.0 SP6</FONT>
</P>

<P><FONT SIZE=2>D:\Code&gt;ruby --version</FONT>
<BR><FONT SIZE=2>ruby 1.6.1 (2000-10-05) [i386-cygwin]</FONT>
</P>

<P><FONT SIZE=2>What obvious thing am I overlooking?</FONT>
<BR><FONT SIZE=2>Thanks,</FONT>
</P>

<P><FONT SIZE=2>Joe Swatosh</FONT>
</P>

</BODY>
</HTML>
------_extPart_001_01C076AB.AC295910--