<div dir="ltr">Faré, your code is not valid in ECL because ECL does not support to use run-program with output to text strings. This is not a bug but something that would involve some major redesign of the function we have.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 30, 2013 at 2:52 AM, Faré <span dir="ltr"><<a href="mailto:fahree@gmail.com" target="_blank">fahree@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I believe this is a bug in ECL.<br>
<br>
Its can be reproduced this way:<br>
<br>
(in-package :asdf)<br>
(let ((ok1 (format nil "; $ echo ok 1~%ok 1~%")))<br>
(assert-equal<br>
(with-output-to-string (s)<br>
(let ((*verbose-out* t)<br>
(*standard-output* s))<br>
(run-shell-command "echo ok ~D" 1)))<br>
ok1))<br>
<br>
Or more simply this way:<br>
(with-output-to-string (*standard-output*) (uiop:RUN-PROGRAM "echo ok<br>
1" :FORCE-SHELL T :IGNORE-ERROR-STATUS T :OUTPUT T))<br>
<br>
I've commented out this test for ECL.<br>
<br>
Thanks for the bug report!<br>
<div class="im"><br>
—♯ƒ • François-René ÐVB Rideau •Reflection&Cybernethics• <a href="http://fare.tunes.org" target="_blank">http://fare.tunes.org</a><br>
</div>In a five year period we can get one superb programming language.<br>
Only we can't control when the five year period will begin. — Alan Perlis<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Mon, Apr 29, 2013 at 6:43 PM, Robert Goldman <<a href="mailto:rpgoldman@sift.info">rpgoldman@sift.info</a>> wrote:<br>
> On ECL 12.12.1 on Mac OSX, test-run-program.script failed for me:<br>
><br>
> ;;; Loading "/Users/rpg/lisp/asdf/test/script-support.lisp"<br>
> ;;; Loading "/Users/rpg/lisp/asdf/build/fasls/ecl/asdf.fas"<br>
> Configuring ASDF<br>
> Enabling debugging<br>
> Being a bit verbose<br>
> Comparing directories<br>
> ASDF-TEST:*TEST-DIRECTORY* and ASDF-TEST::X both evaluate to same path:<br>
> #P"/Users/rpg/lisp/asdf/test/"<br>
> Frob packages<br>
><br>
> Internal or unrecoverable error in:<br>
> illegal stream mode<br>
> [2: No such file or directory]<br>
><br>
> ;;; ECL C Backtrace<br>
> ;;; 0 libecl.12.12.dylib 0x000000010e3b68e4<br>
> si_dump_c_backtrace + 52<br>
> ;;; 1 libecl.12.12.dylib 0x000000010e3a7721<br>
> ecl_internal_error + 113<br>
> ;;; 2 libecl.12.12.dylib 0x000000010e39abb4<br>
> ecl_stream_to_handle + 148<br>
> ;;; 3 libecl.12.12.dylib 0x000000010e3dbc50<br>
> si_run_program + 1168<br>
> ;;; 4 libecl.12.12.dylib 0x000000010e3641b3 si_system<br>
> + 179<br>
> ;;; 5 asdf.fas 0x0000000111514e98<br>
> LC359system + 440<br>
> ;;; 6 asdf.fas 0x00000001115150db<br>
> LC360call_system + 523<br>
> ;;; 7 asdf.fas 0x000000011151552f<br>
> LC361uiop_stream__think + 1023<br>
> ;;; 8 asdf.fas 0x000000011153bdae<br>
> L288call_with_temporary_file + 3182<br>
> ;;; 9 asdf.fas 0x0000000111515d96<br>
> L363run_program + 1334<br>
> ;;; 10 asdf.fas 0x00000001114e6356<br>
> L849run_shell_command + 758<br>
> ;;; 11 libecl.12.12.dylib 0x000000010e373c25 APPLY + 101<br>
> ;;; 12 libecl.12.12.dylib 0x000000010e38382c<br>
> ecl_interpret + 9932<br>
> ;;; 13 libecl.12.12.dylib 0x000000010e38b21e eval_form<br>
> + 350<br>
> ;;; 14 libecl.12.12.dylib 0x000000010e38b761<br>
> si_eval_with_env + 1281<br>
> ;;; 15 libecl.12.12.dylib 0x000000010e3d89e9<br>
> si_load_source + 409<br>
> ;;; 16 libecl.12.12.dylib 0x000000010e3d91f1 cl_load +<br>
> 1825<br>
> ;;; 17 libecl.12.12.dylib 0x000000010e373c10 APPLY + 80<br>
> ;;; 18 libecl.12.12.dylib 0x000000010e38382c<br>
> ecl_interpret + 9932<br>
> ;;; 19 libecl.12.12.dylib 0x000000010e383c5e<br>
> _ecl_bytecodes_dispatch_vararg + 350<br>
> ;;; 20 asdf.fas 0x000000011153e767<br>
> L472call_with_asdf_cache + 695<br>
> ;;; 21 libecl.12.12.dylib 0x000000010e373c10 APPLY + 80<br>
> ;;; 22 libecl.12.12.dylib 0x000000010e38382c<br>
> ecl_interpret + 9932<br>
> ;;; 23 libecl.12.12.dylib 0x000000010e38385a<br>
> ecl_interpret + 9978<br>
> ;;; 24 libecl.12.12.dylib 0x000000010e38b21e eval_form<br>
> + 350<br>
> ;;; 25 libecl.12.12.dylib 0x000000010e386292<br>
> compile_toplevel_body + 130<br>
> ;;; 26 libecl.12.12.dylib 0x000000010e389f18<br>
> compile_form + 600<br>
> ;;; 27 libecl.12.12.dylib 0x000000010e38ae15<br>
> compile_with_load_time_forms + 53<br>
> ;;; 28 libecl.12.12.dylib 0x000000010e38b1b9 eval_form<br>
> + 249<br>
> ;;; 29 libecl.12.12.dylib 0x000000010e38b761<br>
> si_eval_with_env + 1281<br>
> ;;; 30 libecl.12.12.dylib 0x000000010e380683 cl_eval + 19<br>
> ;;; 31 libecl.12.12.dylib 0x000000010e3ab487 dispatch1<br>
> + 39<br>
> ./run-tests.sh: line 78: 85028 Abort trap: 6 "$@"<br>
> + echo 'Using ecl, test-run-program.script failed'<br>
> Using ecl, test-run-program.script failed<br>
><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com" target="_blank">http://juanjose.garciaripoll.googlepages.com</a>
</div>