Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in autoexec.txt fail silently #79

Open
stevesims opened this issue Aug 11, 2023 · 1 comment
Open

Errors in autoexec.txt fail silently #79

stevesims opened this issue Aug 11, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@stevesims
Copy link
Contributor

My autoexec.txt file is simple, reading thus:

SET KEYBOARD 0
LOAD bbcbasic
CD test
RUN

On boot I was ending up in the MOS prompt rather than BASIC, which I was somewhat mystified by.

It turns out there are two errors in this file. The first being that it should be LOAD bbcbasic.bin, and making that change landed me in BASIC. The second error is that I don't actually have a test directory on my SD card, so the CD command was also failing silently.

It would be good if errors in the autoexec.txt file could be surfaced.

Ideally if we handled autoexec.txt in a manner similar to how MS DOS dealt with autoexec.bat files, i.e. by passing the contents thru the command line, rather than executing directly, then we would expose both the commands being processed as well as any errors that may have occurred.

@breakintoprogram
Copy link
Owner

Hi, thanks for the suggestion. The autoexec.txt files do currently execute their commands by passing each line through the command line. Not handling errors and not echoing the details on screen are deliberate. I could modify the code by adding a command to turn echo on and off, and always failing on errors.

@breakintoprogram breakintoprogram added the enhancement New feature or request label Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants