Samuel W. Heywood wrote:
> 
> I wonder if anyone here could recommend for me a very 
> small version of Basic that I might easily install and 
> run well in the small ramdrive version of BasicLinux.  

As much as I loved BASIC on my Commodores, there is no way 
I would go back.  The inbuilt scripting capability of Linux 
gives me everything I need and more.  All of the familiar 
BASIC routines have comfortable equivalents in Linux scripts.  
Here are some simple examples:

PRINT "WHAT IS YOUR NAME";     echo -n "What is your name? "
INPUT A$                       read A
PRINT "HELLO, "A$              echo "Hello, "$A

FOR I=1 TO 5                   for I in 1 2 3 4 5
PRINT "SQUARE OF "I" IS "I*I   do echo "square of "$I" is "$[I*I]
NEXT                           done

A$="MERRY CHRISTMAS"           A="MERRY CHRISTMAS"
PRINT LEFT$(A$,7)              echo -n $A | cut -c -7
PRINT LEN(A$)                  echo -n $A | wc -c


Yes, there is a learning curve and there are lots of little things
to trip you up (like the position of the $).  But once you get
there, you can have all the fun of BASIC plus you are hacking at 
the heart of the Linux shell.

Cheers,
Steven


Reply via email to