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.
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:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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:
Related
Support Requests: #8
@KenUnix, worked like a charm!
@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?
Daniel - Condensed change log (3.20c-g):
Functional updates:
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,...
UNIX / Linux "profile.bas" search locations added:
Packaging updates:
Ken
On Wed, Feb 9, 2022, 8:06 AM Daniel D. Rodrigues danieldiasr@users.sourceforge.net wrote:
Related
Support Requests: #8
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.