Re: [code] [textadept] Experimental os.spawn

From: Mitchell <m.att.foicica.com>
Date: Mon, 15 Oct 2018 22:32:15 -0400 (EDT)

Hi,

Will someone who has a Mac please perform an experiment for me? Create the following shell script, *foo.sh*, somewhere:

   #!/bin/sh

   for i in 1 2 3 4 5 6 7 8 9 10; do
     echo $i
     sleep 1
   done

Then make *foo.sh* executable by running `chmod +x foo.sh`.

Now fetch the latest Textadept nightly build for 15 October (very important, and available after 16 October 03:30 UTC), open the command entry (Cmd+E), and run the following:

   os.spawn('/path/to/foo.sh', print)

where `/path/to/foo.sh` is the real path to that file (e.g. /tmp/foo.sh).

Would you please verify that (1) Textadept does not crash, and (2) that every second a number is printed to the message buffer?

Thank you very much.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Mon 15 Oct 2018 - 22:32:15 EDT

This archive was generated by hypermail 2.2.0 : Tue 16 Oct 2018 - 06:52:05 EDT