GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    clacke@libranet.de is my main (notclacke@fedia.social)'s status on Sunday, 09-Mar-2025 22:29:46 JST clacke@libranet.de is my main clacke@libranet.de is my main
    • Rich Felker

    @hipsterelectron @dalias Yeah, I would say \temp is neither relative nor absolute. 🤢

    In conversation about 2 months ago from fedia.social permalink
    • Embed this notice
      Rich Felker (dalias@hachyderm.io)'s status on Sunday, 09-Mar-2025 22:52:12 JST Rich Felker Rich Felker
      in reply to

      @notclacke @hipsterelectron Exactly. And it's so stupid that Microsoft hasn't fixed this artifact of DOS. Current drive should be locked at C: and \ should thereby always be relative to that. And C: should be a virtual absolute root, not the first hard drive.

      In conversation about 2 months ago permalink
      Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      Luna R (lunarood@mastodon.gamedev.place)'s status on Monday, 10-Mar-2025 00:20:30 JST Luna R Luna R
      in reply to
      • Rich Felker

      @dalias @notclacke @hipsterelectron Windows drives are the source of so much inconsistency! They really should've gotten rid of this nonsense. DOS compatibility is already all over the place anyway.

      Besides the whole "absolute" path with additional state nonsense, there's also the whole thing with inconsistent working directory handling, where they inject messed up pseudo env vars to keep behaviour "compatible" with DOS. That's a fun one to look into, for anyone wanting to be *more* horrified.

      In conversation about 2 months ago permalink
    • Embed this notice
      clacke@libranet.de is my main (notclacke@fedia.social)'s status on Wednesday, 12-Mar-2025 00:14:43 JST clacke@libranet.de is my main clacke@libranet.de is my main
      in reply to
      • Rich Felker
      • Luna R

      @lunarood Horrify us! I grew up fighting the "com bat files", as some of us called them, and moved up from there through Windows 3.0, 3.1, 95 and XP, but this quirk sounds new to me.

      @dalias @hipsterelectron

      In conversation about 2 months ago permalink
    • Embed this notice
      Rich Felker (dalias@hachyderm.io)'s status on Wednesday, 12-Mar-2025 00:18:34 JST Rich Felker Rich Felker
      in reply to
      • Luna R

      @notclacke @hipsterelectron @lunarood You don't remember typing A:, doing some stuff on floppy, then typing C: and getting back to the same dir you were in on the HDD?

      That wasn't just COMMAND.COM shell behavior, but actual OS state in DOS that Windows preserved as local to the process. 🤮

      In conversation about 2 months ago permalink

      Attachments


    • Embed this notice
      clacke@libranet.de is my main (notclacke@fedia.social)'s status on Wednesday, 12-Mar-2025 09:21:12 JST clacke@libranet.de is my main clacke@libranet.de is my main
      in reply to
      • Rich Felker
      • Luna R

      @dalias Yes! I described that elsewhere in the thread. Each drive has a current directory, and your actual current directory is determined by your current drive and the current directory of that drive. Is that state what you mean by pseudo environment variable?

      @hipsterelectron @lunarood

      In conversation about 2 months ago permalink
    • Embed this notice
      Luna R (lunarood@mastodon.gamedev.place)'s status on Thursday, 13-Mar-2025 20:02:17 JST Luna R Luna R
      in reply to
      • Rich Felker

      @notclacke @dalias @hipsterelectron Not quite. What I was referencing, which Cassandrich expanded upon, is the particular way in which this DOS behaviour was "ported" to Windows.

      It's handled in the process environment, rather than at the OS level. Technically they are actual environment variables, so my "pseudo" was kinda misleading, but they use a mangled naming scheme to avoid collisions with other vars.

      The link I posted in another reply goes into more detail (some of it in the comments).

      In conversation about 2 months ago permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: img-prod-cms-rt-microsoft-com.akamaized.net
        Prova la potenza del SO Windows 11 e dei computer e delle app associati
        from @microsoft
        Esplora la versatilità di Windows 11, il sistema operativo di Microsoft. Scopri il nostro più recente sistema operativo Windows che ti offre tanti modi per lavorare, giocare e creare.
      clacke@libranet.de is my main likes this.
    • Embed this notice
      clacke@libranet.de is my main (notclacke@fedia.social)'s status on Thursday, 13-Mar-2025 20:04:23 JST clacke@libranet.de is my main clacke@libranet.de is my main
      in reply to
      • Rich Felker
      • Luna R

      @lunarood Aha! Gotcha. Making them actual environment variables with special names rather than process attributes is an "interesting" choice. They do affect the behavior of native Windows processes, right?

      @dalias @hipsterelectron

      In conversation about 2 months ago permalink
      clacke repeated this.
    • Embed this notice
      clacke@libranet.de is my main (notclacke@fedia.social)'s status on Thursday, 13-Mar-2025 20:33:04 JST clacke@libranet.de is my main clacke@libranet.de is my main
      in reply to
      • Rich Felker
      • Luna R

      Whereas in Win32, there is only one current directoryI have been lied to by CMD.EXE. 🤯

      So does D:some_dir even have meaning in the system? I'll have to find a Windows machine and experiment.

      web.archive.org/web/20180813013919/https://blogs.msdn.microsoft.com/oldnewthing/20100506-00/?p=14133

      /via stackoverflow.com/questions/53078528/how-to-get-current-working-directory-of-another-drive-in-batch/53078745#comment93054937_53078745
      /via mastodon.gamedev.place/@lunarood/114144521393298888

      @lunarood @dalias @hipsterelectron

      In conversation about 2 months ago permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: web.archive.org
        What are these strange =C: environment variables?
        You won’t see them when you execute a SET command, but if you write a program that manually enumerates all the environment variables and prints them out, and if you launch it from a command prompt, then you’ll see weird variables with names like =C: and whose values correspond to directories on that drive. What...
      2. Domain not in remote thumbnail source whitelist: cdn.sstatic.net
        How to get current working directory of another drive in Batch?
        Is there a way to get the current working directory of a drive other than the current drive? Windows stores the current directory of every drive and %cd% gets the current working directory of the ...
    • Embed this notice
      Rich Felker (dalias@hachyderm.io)'s status on Thursday, 13-Mar-2025 21:46:17 JST Rich Felker Rich Felker
      in reply to
      • Luna R

      @notclacke @hipsterelectron @lunarood Wow this is even more cursed than I expected. So what does d:foo mean when d: isn't the drive of the real current working directory? Same as d:\foo?

      And what does \foo mean? Is it relative to the root of the drive letter of the current working directory? Or what?

      In conversation about 2 months ago permalink
    • Embed this notice
      Luna R (lunarood@mastodon.gamedev.place)'s status on Friday, 14-Mar-2025 23:57:30 JST Luna R Luna R
      in reply to
      • Rich Felker

      @dalias @notclacke @hipsterelectron Now, tying this all back to d@nny's original issue... taking all the variations in behaviour into account... I think we can all confidently say that the full, definitive, exhaustive answer is: 🤷♀️

      In conversation about 2 months ago permalink
      clacke likes this.
    • Embed this notice
      Luna R (lunarood@mastodon.gamedev.place)'s status on Friday, 14-Mar-2025 23:57:32 JST Luna R Luna R
      in reply to
      • Rich Felker

      @dalias @notclacke @hipsterelectron Haha, looks like you are all thoroughly horrified! Mission accomplished! 😇

      As for those two questions about the paths... my assumption is that, on Windows (without cmd.exe), the answer is "yes" in both cases. Though I can't verify this... it's been years since I had to deal with a Windows box.

      In conversation about 2 months ago permalink
      clacke likes this.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.