<br><br><div><span class="gmail_quote">On 11/3/07, <b class="gmail_sendername">Ionut Prunache</b> <<a href="mailto:bthorne@gmail.com">bthorne@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
<br><br><div><span class="q"><span class="gmail_quote">On 11/3/07, <b class="gmail_sendername">Silviu-Ionut Ganceanu</b> <<a href="mailto:silviug@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
silviug@gmail.com</a>> wrote:</span></span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
<span class="q"> Ca o completare echo '{{{{{int main() {{{{{{{{{{{{{{{{{ return 0; }' | cat ><span style="font-weight: 700"> src.cpp <br></span>va rezulta in <span style="font-weight: 700">src.cpp</span>: "main() return 0; }" deci aparent acolada mai sterge
<br>caracterele pana la primu white space...<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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
silviug@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.80ex; padding-left: 1ex">
Salutare,<br><br>Am dat de urmatoarea problema in lucrul cu pipe-urile pe Windows: pentru urmatoarea comanda<br><br>echo 'int main() {{{{{{{{{{{{{{{{{ return 0; }' | cat ><span style="font-weight: 700"> src.cpp
</span><br><br><span style="font-weight: 700">src.cpp</span> va contine "int main() return 0; }"<br><br>Oricat de ciudat ar parea, se pare ca '{' nu se transmite prin pipe (singurul caracter pe care<br>
l-am gasit in situatia asta). Este asta o problema cunoscuta? Sincer, habar nu am de unde<br>ar putea veni acest bug...<br><br>Multumesc,<br><span><br>Silviu<br></span></blockquote></div><br><br></span>_______________________________________________
<span class="q"><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></span></blockquote></div><br>Salut,<br><br>Problema nu e de la pipe ci de la echo. Trebuie sa-i dai parametrii care contin spatiu intre apostroafe. <br>Iar apostroafele din comanda initiala sunt eliminate de parser.
<br></blockquote></div><br>Bine, nu neaparat spatii, caractere speciale.<br>