@CSB absolutely. writing portable software, even scripts, is quite tricky. even a different version of the same shell could make your script suddenly not work. its unfortunately why everything needs to be tested almost everywhere, unless you can make strict requirements on the end user's environment
Conversation
Notices
-
Embed this notice
Sir² Morgan (mh@noagendasocial.com)'s status on Monday, 07-Aug-2023 08:50:27 JST Sir² Morgan -
Embed this notice
Sir² Morgan (mh@noagendasocial.com)'s status on Monday, 07-Aug-2023 07:24:24 JST Sir² Morgan @CSB I haven't used windows 11 but yes, that has been true in every version of windows and Linux I'm familiar with
-
Embed this notice
CSB ≡ Comic Strip Blogger (csb@noagendasocial.com)'s status on Monday, 07-Aug-2023 07:24:25 JST CSB ≡ Comic Strip Blogger dudes named Ben, is it correct?:
file system in
Linux is case sensitive but in Windows 11 it’s case insensitiveso if I write a script that is multi platform then I can create 2 DIFFERENT folders in
Linux:Kurwa
kurwaBut in Windows 11 only one folder will be created?
-
Embed this notice
Sir² Morgan (mh@noagendasocial.com)'s status on Monday, 07-Aug-2023 07:29:27 JST Sir² Morgan @CSB I'd say that the other way around, since windows is generally the exception here, but yes. :) basically all modern *nix filesystems are case sensitive, windows/dos as I recall is case preserving but not case *sensitive*.
-
Embed this notice
Sir² Morgan (mh@noagendasocial.com)'s status on Monday, 07-Aug-2023 07:32:29 JST Sir² Morgan @CSB but on every other system they'll behave the same, even if that's not what you intended for to happen. so in that sense, windows is the exceptional case
-
Embed this notice
Christopher Di Biase (dibiase@noagendasocial.com)'s status on Monday, 07-Aug-2023 07:36:45 JST Christopher Di Biase @mh @CSB You are correct, DOS/Windows has never been case sensitive, but resent systems are case preserving.
Linux and Unix from which it came were always case sensitive.
What language are you scripting in? I know PowerShell has $isLinux and $isWindows environmental variables for testing that. Python may have similar.
Fun history lesion, as I understand from back in the day, DOS always rendered in all caps because devs didn't want to render "God" on screen in lower case out of respect.
-
Embed this notice
Sir² Morgan (mh@noagendasocial.com)'s status on Monday, 07-Aug-2023 08:39:35 JST Sir² Morgan @CSB it seems you aren't getting my point of windows being the exception, so go try running your original broken script on every modern operating system besides windows. note that it behaves the same - that is, broken. now compare that to windows, where it works. that's why windows is the exception, not the other way around
-
Embed this notice
Sir² Morgan (mh@noagendasocial.com)'s status on Monday, 07-Aug-2023 08:53:08 JST Sir² Morgan @CSB I'm reminded of a recent issue, from another team that does the front end parts of our system, where windows does something odd only when you have more than EIGHT monitors. I'm not sure why one would need that many, but anyway he did. finally they said "the software can't be used with more than 8 monitors" lol
-
Embed this notice