Menu

#8 New and updated bwbasic for Linux Amd64

v1.0 (example)
open
nobody
new (6)
5
2022-02-11
2021-12-16
KenUnix
No

Attached is the latest bwbasic for Linux Amd64 3.20f

Attached is the latest renum2 for Linux Amd64
Type in: renum2 --help

2 Attachments

Related

Support Requests: #8

Discussion

  • Daniel D. Rodrigues

    Why shell commands are not working?

    In bwbasic 2.20 i can use ls -l *.bas:
    bwBASIC: ls
    bwbasic bwbasic-3.20.zip renum2

    In 3.20f i can't:
    bwBASIC: ls
    ILLEGAL COMMAND AFTER LINE NUMBER: 1 ls
    bwBASIC: ls -l *.bas
    ILLEGAL COMMAND AFTER LINE NUMBER: 1 ls -l *.bas

     
    • KenUnix

      KenUnix - 2022-02-08

      I've dug around in the guts of bwBASIC enough to know stuff about it. The
      simple answer is that bwBASIC is not a "shell" in the sense that "BASH" or
      just plain "SH" are. Its a BASIC interpreter. It runs BASIC programs. You
      can execute shell commands from it with the "SHELL" function. So you
      would do something like this:

      bwBASIC: shell "ls"

      Or if you want to capture the exit code and do something with it, you use
      the SHELL() function, like this:

      x = shell("ls")

      I've not played with v2 so I can't speak to the difference. But this is how
      3.x works today. What you're saying about v2 makes me curious. I'll have to
      dust off an older version and have a look.

      On Sun, Feb 6, 2022, 3:28 PM Daniel D. Rodrigues danieldiasr@users.sourceforge.net wrote:

      Why shell commands are not working?

      In bwbasic 2.20 i can use ls -l *.bas:
      bwBASIC: ls
      bwbasic bwbasic-3.20.zip renum2

      In 3.20f i can't:
      bwBASIC: ls
      ILLEGAL COMMAND AFTER LINE NUMBER: 1 ls
      bwBASIC: ls -l *.bas
      ILLEGAL COMMAND AFTER LINE NUMBER: 1 ls -l *.bas


      [support-requests:#8] New and updated bwbasic for Linux Amd64

      Status: open
      Group: v1.0 (example)
      Labels: new
      Created: Thu Dec 16, 2021 07:40 PM UTC by KenUnix
      Last Updated: Thu Dec 16, 2021 07:40 PM UTC
      Owner: nobody
      Attachments:

      • bwbasic
        (410.0 kB; application/octet-stream)
      • renum2
        (15.4 kB; application/octet-stream)

      Attached is the latest bwbasic for Linux Amd64 3.20f

      Attached is the latest renum2 for Linux Amd64
      Type in: renum2 --help


      Sent from sourceforge.net because you indicated interest in <
      https://sourceforge.net/p/bwbasic/support-requests/8/>

      To unsubscribe from further messages, please visit <
      https://sourceforge.net/auth/subscriptions/>

       
      👍
      1

      Related

      Support Requests: #8

      • Daniel D. Rodrigues

        @KenUnix, worked like a charm!

        I've dug around in the guts of bwBASIC enough to know stuff about it. The
        simple answer is that bwBASIC is not a "shell" in the sense that "BASH" or
        just plain "SH" are. Its a BASIC interpreter. It runs BASIC programs. You
        can execute shell commands from it with the "SHELL" function. So you
        would do something like this:

        bwBASIC: shell "ls"

        Or if you want to capture the exit code and do something with it, you use
        the SHELL() function, like this:

        x = shell("ls")

        I've not played with v2 so I can't speak to the difference. But this is how
        3.x works today. What you're saying about v2 makes me curious. I'll have to
        dust off an older version and have a look.

         
  • Daniel D. Rodrigues

    @KenUnix,

    Have you changed anything in the code? What are the differences from 3.20 in Files section (2017) tô yours 3.20f? What you have changed in renum2? There's any changelog.gz?

     
    • KenUnix

      KenUnix - 2022-02-11

      Daniel - Condensed change log (3.20c-g):

      Functional updates:

      • Fix memory leaks in function handling
      • Make HELP & EDIT available in ALL VERSIONs.
      • All files are closed when variables are cleared: NEW & RUN
      • Fix LSET & RSET so they fill the complete field length
      • LINE INPUT now reads whitespace correctly
      • Greeting changed to reflect new contributions
      • Renum was much improved but still fails in some situations.

      • Renum complete rewrite to renum2

      • Prevent random seeks with BINARY mode files. This makes it
        compatible with devices, like I2C, SPI, UARTs,...

      • ANSI and TTY handling improvements
      • color codes now work correctly and are limited to the proper range.
        UNIX / Linux "profile.bas" search locations added:
      • ~/profile.bas
      • ~/.profile.bas

      Packaging updates:

      • INFO directory clean up:
      • duplicte files removed
      • files renamed for consistency
      • READMEFIRST updates from KenUNIX
      • windoze compile.bat updated for 32/64 bit XP,7,10,11
      • UNIX compile fixes
      • make targets added:
      • addgui
      • delgui
      • install
      • Updated bwbasic.sh and bwbasic.desktop
      • Change bwbasic.png
      • General Makefile clean up

      Ken

      On Wed, Feb 9, 2022, 8:06 AM Daniel D. Rodrigues danieldiasr@users.sourceforge.net wrote:

      @KenUnix,

      Have you changed anything in the code? What are the differences from 3.20
      in Files section (2017) tô yours 3.20f? What you have changed in renum2?
      There's any changelog.gz?


      [support-requests:#8] New and updated bwbasic for Linux Amd64

      Status: open
      Group: v1.0 (example)
      Labels: new
      Created: Thu Dec 16, 2021 07:40 PM UTC by KenUnix
      Last Updated: Tue Feb 08, 2022 04:18 PM UTC
      Owner: nobody
      Attachments:

      • bwbasic
        (410.0 kB; application/octet-stream)
      • renum2
        (15.4 kB; application/octet-stream)

      Attached is the latest bwbasic for Linux Amd64 3.20f

      Attached is the latest renum2 for Linux Amd64
      Type in: renum2 --help


      Sent from sourceforge.net because you indicated interest in <
      https://sourceforge.net/p/bwbasic/support-requests/8/>

      To unsubscribe from further messages, please visit <
      https://sourceforge.net/auth/subscriptions/>

       

      Related

      Support Requests: #8

      • Daniel D. Rodrigues

        Wow! Could you share your source code with these changes? I have created a GitHub repository and uploaded all available versions one by one there, for historical purposes. In addition to making it easier to compare changes, using diff. Take a look, you may like it.

        I made a mistake in my GitHub repository and made your version 3.20f available in the Releases section as if it were version 3.20 of Howard S. Wulf (a.k.a. AF5NE).

        I know that Howard S. Wulf was working on a 3.30 version, but never released. Would be awesome to get all those sources.

        I have notice also that you have at least three bwbasic repositories in your GitHub.

         

Log in to post a comment.