-
Notifications
You must be signed in to change notification settings - Fork 79
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
RunCPM can't execute COM file that's definitely there -- filename case issue? #204
Comments
I see it happens on Linux (maybe Mac also, and others). |
Okay, that's fair but I wish I had a choice of uppercase vs. lowercase. Perhaps if a file doesn't exist in the all-uppercase form, check for the all-lowercase form? |
What if the subdirectory has both upper and lower characters, for example ProgAll? So, no way for such a smart check. |
It wouldn't have to handle all possibilities -- just ALL CAPS and all lower as the two predominate styles. |
I would say that one of predominate styles is to have capital letter at the beginning. Which means it depends on the logic. |
I will actually see if I can make it use the first one. Doesn't matter caps combination. |
Just to point out the obvious, the repo is RunCPM. Allowing lowercase would make it RunSomethingLikeCPMish. CPM expects all uppercase filenames, and many original utilities rely on this. So imho, keep to the standard of CPM 2.2 or later. 2 cents. |
Nothing changes within the CP/M environment, this would be entirely a convenience on the host side |
Yes. That would be just to fix (or standardize) on the host side. The cp/m
will continue to be uppercase.
…On Sun, Feb 9, 2025, 8:09 PM Kroc Camen ***@***.***> wrote:
Nothing changes within the CP/M environment, this would be entirely a
convenience on the host side
—
Reply to this email directly, view it on GitHub
<#204 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD74NC2XKMSTHPFXXICKV3L2O7327AVCNFSM6AAAAABWYDE776VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBWG4YTMMBVGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
On the host side it is fully OS dependent - DOS/Windows doesn't really care about the case (Windows can use both upper and lowercase in file names, but still doesn't really care). Simple example: C:>dir f* Directory of C:\ 01/22/2025 04:45 PM Files0 File(s) 0 bytes 1 Dir(s) 229,678,669,824 bytes free C:>dir F* Directory of C:\ 01/22/2025 04:45 PM Files0 File(s) 0 bytes 1 Dir(s) 229,678,620,672 bytes free As shown, it will find "Files" in both cases, even though it contains one capital letter and the rest are lowercase. Same in more complex situations. [root@server]# mkdir files This is a real test, not just manipulation :) |
RunCPM ignores directories, it only pays attention to files. And in case of
the files it will be the first found. (That is my plan at least)
And it will ignore case. Leaving up to us to prevent duplicates.
(Unless Linux glob calls prevent me from doing it)
…On Sun, Feb 9, 2025, 8:46 PM Stanislav Georgiev ***@***.***> wrote:
On the host side it is fully OS dependent - DOS/Windows doesn't really
care about the case (Windows can use both upper and lowercase in file
names, but still doesn't really care). Simple example:
C:>dir f*
Volume in drive C is OS
Directory of C:\
01/22/2025 04:45 PM
Files
0 File(s) 0 bytes
1 Dir(s) 229,678,669,824 bytes free
C:>dir F*
Volume in drive C is OS
Directory of C:\
01/22/2025 04:45 PM
Files
0 File(s) 0 bytes
1 Dir(s) 229,678,620,672 bytes free
As shown, it will find "Files" in both cases, even though it contains one
capital letter and the rest are lowercase. Same in more complex situations.
But in Linux it is completely the opposite - it really cares about
upper/lowercase. So in theory we could have /Files, /files and /FILES in
one directory:
***@***.***# mkdir files
***@***.***# mkdir Files
***@***.***# mkdir FILES
***@***.***# ls -la
total 5
drwxr-xr-x 6 root root 99 Feb 10 01:39 .
dr-xr-x---. 17 root root 4096 Dec 12 20:09 ..
drwxr-xr-x 2 root root 6 Feb 10 01:39 files
drwxr-xr-x 2 root root 6 Feb 10 01:39 Files
drwxr-xr-x 2 root root 6 Feb 10 01:39 FILES
This is a real test, not just manipulation :)
So, how will RunCPM distinguish these 3 directories if all of them exist
and are converted by the emulator to uppercase?
—
Reply to this email directly, view it on GitHub
<#204 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD74NC22WOZ2CUYFHZY564T2PAAITAVCNFSM6AAAAABWYDE776VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBWG42DKOJUGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Yeah, it is same with files. Directories are nothing else but special kind of files, you know that. |
What I meant is. The only directories that matter are the "drive" ones. Any
directories inside those are ignored (it is a bug if they aren't).
So if you create a XPTO.COM folder, it will be like if it is not there.
…On Sun, Feb 9, 2025, 8:55 PM Stanislav Georgiev ***@***.***> wrote:
Yeah, it is same with files. Directories are nothing else but special kind
of files, you know that.
OK, whatever you decide.
—
Reply to this email directly, view it on GitHub
<#204 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD74NC4NZFRFOUONDJZPLWT2PABI3AVCNFSM6AAAAABWYDE776VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBWG42TEOJVHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
The filenames are lowercase on the filesystem, but whilst RunCPM cannot list the files, it can't execute them regardless of case typed!
The text was updated successfully, but these errors were encountered: