Re: "system()" vs "system_exec()" problem

new topic     » goto parent     » topic index » view thread      » older message » newer message

This is a multi-part message in MIME format.

------=_NextPart_000_0060_01C0D099.8B807840
	charset="Windows-1252"

I need to expound upon this.  I need to pass arguments to my c program =
that contain paths with spaces in them, ie, "C:\My Documents\hello.html" =
. . . hence the reason for the double quotes (") . . .
  ----- Original Message -----=20
  From: jjnick at cvn.com=20
  To: EUforum=20
  Sent: Sunday, April 29, 2001 10:32 AM
  Subject: "system()" vs "system_exec()" problem



I am pretty sure that the behavior of "system_exec()" is not desired: - =
"testargs.exe" will print a confirmation message that it found 2 =
arguments- Calling "testargs.exe" with "system_exec()" with the =
following arguments: 'testargs "1 1" "2 2"' produces nothing . . .- Yet, =
Calling "testargs.exe" with "system()" with the same arguments produces =
the correct result, "2"


------=_NextPart_000_0060_01C0D099.8B807840
Content-Type: text/html;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I need to expound upon this.&nbsp; I =
need to pass=20
arguments to my c program that contain paths with spaces in them, ie, =
"C:\My=20
Documents\hello.html" . . . hence the reason for the double quotes (") . =
.=20
.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Djjnick at cvn.com =
href=3D"mailto:jjnick at cvn.com">jjnick at cvn.com</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3DEUforum at topica.com=20
  href=3D"mailto:EUforum at topica.com">EUforum</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Sunday, April 29, 2001 =
10:32=20
  AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> "system()" vs =
"system_exec()"=20
  problem</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT><FONT=20
  face=3DArial size=3D2></FONT><FONT face=3DArial size=3D2></FONT><FONT =
face=3DArial=20
  size=3D2></FONT><FONT face=3DArial size=3D2></FONT><FONT face=3DArial=20
  size=3D2></FONT><BR></DIV><PRE>            &gt;&gt;&gt;&gt;&gt; The =
Euphoria Mailing List &lt;&lt;&lt;&lt;&lt;
</PRE><PRE><FONT face=3DArial size=3D2>I am pretty sure that the =
behavior of "system_exec()" is not desired:<BR>&nbsp;<BR>- "<FONT =
face=3D"Courier New">testargs.exe</FONT>" will print a confirmation =
message that it found 2 arguments<BR>- Calling "<FONT face=3D"Courier =
New">testargs.exe</FONT>" with "<FONT face=3D"Courier =
New">system_exec()</FONT>" with the following arguments: <FONT =
face=3D"Courier New">'testargs "1 1" "2 2"</FONT>' produces nothing . . =
.<BR>- Yet, Calling "<FONT face=3D"Courier New">testargs.exe</FONT>" =
with "<FONT face=3D"Courier New">system()</FONT>" with the same =
arguments produces the correct result, =

------=_NextPart_000_0060_01C0D099.8B807840--

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu