jed-users mailing list

[2004 Date Index] [2004 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: asynchronous process problem


Guenter Milde <g.milde@xxxxxx> wrote:
> variable teststring = "a";
> loop(13)
>   teststring += teststring;
> send_process (AShell_Id, "echo "+ teststring + "bbbb\n");
> % send the newline again, as it gets clipped
> send_process (AShell_Id, "\n");
>
>
>Have a look at the end of the line to see (or not see) the "b"-s 
>(I don't).

I do not see the "b"s if my shell is tcsh, but I do see them if the
shell is bash.

>  define output_test(str)
>  {
>     eob;
>     vinsert("\nashell output %d chars", strlen(str));
>     return str;
>  }
>  set_process (AShell_Id, "output", "output_test");

The stack overflow problem is occuring because output_test is
returning a value, which it should not.  Use:

  define output_test(str)
  {
     eob;
     vinsert("\nashell output %d chars", strlen(str));
  }

--John

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2004 date index] [2004 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]