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

Bad parameter splitting on CP/M #2063

Open
zx70 opened this issue Aug 5, 2022 · 0 comments
Open

Bad parameter splitting on CP/M #2063

zx70 opened this issue Aug 5, 2022 · 0 comments

Comments

@zx70
Copy link
Member

zx70 commented Aug 5, 2022

From time to time I pick an working program written in C and try to run it on z88dk.
In this way I have a simple and funny way to test z88dk and spot those hidden bugs which are difficult to find by writing test programs from scratch (which would obviously be limited by my skills and programming "stile", or rather habits).

This one shows a limit in the command line paramenters parsing:
https://github.com/z88dk/z88dk-ext/blob/master/os-related/change.c

The program works but both the "<infile", ">outfile" file redirections need to be used to get the program reacting as expected.
The original CP/M program does the right thing, as well as a GCC compiled version.

To be honest, after the /lib folder sorting I tried to adjust it a couple of times already, but the TRS80 way to parse the command line, the CP/M and the OSCA ones now depend one each other and in my past attempts I broke something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant