<br><br><div><span class="gmail_quote">On 11/3/07, <b class="gmail_sendername">Silviu-Ionut Ganceanu</b> <<a href="mailto:silviug@gmail.com">silviug@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Multumesc tuturor pentru lamuriri.<br><br>Am ales varianta quick and dirty propusa de Marius dat fiind faptul ca nu am foarte mult timp la dispozitie sa fac "sapaturi".</blockquote><div><br>Am escapat " cu \ si a mers si pe cazurile in care " exista deja in parametri.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><span class="e" id="q_116070dbf9ec00ec_1"><div><span class="gmail_quote">
On 11/3/07,
<b class="gmail_sendername">Maximilian Machedon</b> <<a href="mailto:maximilian.machedon@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">maximilian.machedon@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>In situatii ca asta conteaza si cine parseaza la "celalalt capat", ca sa obtina argv[]. De exemplu, daca parsarea se face de catre Visual C++, sursele sunt disponibile in:</div>
<div>"C:\Program Files\Microsoft Visual Studio 8\VC\crt\src\stdargv.c"</div>
<div>Se constata din surse ca se poate folosi \ ca escape pentru ".</div>
<div> </div>
<div>Pentru a vedea cum face cygwin (si implicit echo) ia sursele de cygwin (<a href="http://cygwin.com/cvs.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://cygwin.com/cvs.html</a>) sau cauta in documentatie, dar cel mai probabil face la fel.
<br><br></div><div><span>
<div class="gmail_quote">On Nov 3, 2007 12:52 PM, foxX <<a href="mailto:alex.mihaiuc@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">alex.mihaiuc@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
<div>> O solutie ar fi ca pe windows, atunci cand construiesti linia de<br>> comanda pentru CreateProcess, sa pui "" in jurul fiecarui parametru,<br>> adica sa generezi linia de comanda:
<br>><br>> echo "int main() { return 0; }"<br>><br>> ceea ce o sa insemne de asemenea ca daca ai<br>><br>> ls -a -l<br>><br>> pui<br>><br>> ls "-a" "-l"<br>>
<br>
> care nu afecteaza cu nimic executia comenzii<br>><br><br></div>Se intampla niste lucruri poate nedorite la comenzi in genul<br><br>echo 'foo"bar' 'wasd"rdfg' care ajunge sa fie<br>"echo" "foo""bar" "wasd""rdfg"
<br><br>care nu stiu cat e de grav, dar a fost studiat de Alex Vita si Dan Dragomir.<br>
<div>
<div></div>
<div>_______________________________________________<br>so mailing list<br><a href="mailto:so@cursuri.cs.pub.ro" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">so@cursuri.cs.pub.ro</a><br><a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br></div></div></blockquote></div><br>
</span></div><br>_______________________________________________<br>so mailing list<br><a href="mailto:so@cursuri.cs.pub.ro" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">so@cursuri.cs.pub.ro</a>
<br><a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br><br></blockquote></div><br>
</span></div></blockquote></div><br>