Re: How find GNUAPL svn repository revision number

2020-09-22 Thread Peter Teeson
Thanks for all the suggestions: Kacper's answer is what I was looking for. Nice and elegant. > On Sep 22, 2020, at 5:44 PM, Kacper Gutowski wrote: > > On Tue, Sep 22, 2020 at 02:17:46PM -0400, Peter Teeson wrote: >> I want to write a bash script to >> compare the local working copy revision nu

Re: Standard way to compute a Mandelbrot fractal in APL

2020-09-22 Thread Kacper Gutowski
On Tue, Sep 22, 2020 at 03:16:08PM +0200, Dr. Jürgen Sauermann wrote: thanks, fixed missing DOMAIN ERROR in SVN 1348. Thanks, but I failed to realize these are separate cases; the power function with complex left argument and real right still gives infinity at r1348. These should be domain e

Re: How find GNUAPL svn repository revision number

2020-09-22 Thread Kacper Gutowski
On Tue, Sep 22, 2020 at 02:17:46PM -0400, Peter Teeson wrote: I want to write a bash script to compare the local working copy revision number vs the svn://svn.savannah.gnu.org/apl/trun repository revision number. I know how to find out the revision number of my local working copy using sv

Re: How find GNUAPL svn repository revision number

2020-09-22 Thread Christian Robert
I think he means: $ wget -O- http://svn.savannah.gnu.org/svn/apl/trunk/ | fgrep Revision | sed -r 's/.*Revision ([0-9]+).*/\1/' | head -n1 or $ Revision=$(wget -O- http://svn.savannah.gnu.org/svn/apl/trunk/ | fgrep Revision | sed -r 's/.*Revision ([0-9]+).*/\1/' | head -n1) $ echo $Revision

RE: How find GNUAPL svn repository revision number

2020-09-22 Thread Callahan, Brian Robert
In your script, you could use wget or curl or lynx to download that web page, then pipe it into some creative use of grep/sed/awk/perl to extract just the title, then another pipe to another round of grep/sed/awk/perl to get just the revision number. Untested, but something like this should be

Re: How find GNUAPL svn repository revision number

2020-09-22 Thread Peter Teeson
Thanks for your reply but I don’t understand what you mean by ‘scrape that’ > On Sep 22, 2020, at 2:21 PM, Callahan, Brian Robert wrote: > > http://svn.savannah.gnu.org/svn/apl/trunk/ > > Will be in the page title. I'd say scrape that since it's eas

RE: How find GNUAPL svn repository revision number

2020-09-22 Thread Callahan, Brian Robert
http://svn.savannah.gnu.org/svn/apl/trunk/ Will be in the page title. I'd say scrape that since it's easy to do so. ~Brian Brian Robert Callahan, Ph.D. Lecturer, ITWS@RPI Office: Amos Eaton 132 From: Bug-apl [bug-apl-bounces+callab

How find GNUAPL svn repository revision number

2020-09-22 Thread Peter Teeson
I’ve searched and read for the answer but come up dry. I’m on macOS High Sierra Assume I have svn co'd …trunk to a local working copy I want to write a bash script to compare the local working copy revision number vs the svn://svn.savannah.gnu.org/apl/trun repository revision number.

Re: Standard way to compute a Mandelbrot fractal in APL

2020-09-22 Thread Dr . Jürgen Sauermann
Hi Kacper, thanks, fixed missing DOMAIN ERROR in SVN 1348. Best Regards, Jürgen On 9/22/20 10:44 AM, Kacper Gutowski wrote: On Mon, Sep 21, 2020 at 01:17:18PM +0800, Elias Mårtenson wrote: What is the neatest way t

Re: Standard way to compute a Mandelbrot fractal in APL

2020-09-22 Thread Kacper Gutowski
On Mon, Sep 21, 2020 at 01:17:18PM +0800, Elias Mårtenson wrote: What is the neatest way to compute a Mandelbrot fractal in APL? The fact that you have to break out of the loop as soon as the absolute value of Z is >2 makes it a bit ugly. Is there a neater way to do this? This is what I came up