in reply to Re^3: AnyEvent::Socket -> Hosts File -> CR/LF Issue on windows?
in thread AnyEvent::Socket -> Hosts File -> CR/LF Issue on windows?

> $^O eq 'MSWin32'

which is IMHO the central point when talking about newline problems in hybrid situations like WSL or Cygwin

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^5: AnyEvent::Socket -> Hosts File -> CR/LF Issue on windows?
by ikegami (Patriarch) on Feb 08, 2022 at 14:47 UTC

    WSL isn't an unix emulation layer for Windows like Cygwin; it's a VM that let's you run a real Linux install, with its own file system and all. It's 100% not Windows. In comparison, you have access to Windows system calls in Cygwin, and you still use the same file system.

      We recently had the case that someone complained that he ran the same script on the same directory, but the second time a VM accessed the Win-FS. (can't find it immediately)

      I should also have added git-bash as example, which comes with a bundled Perl.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery

        I don't understand what you're trying to say.

        You can access the VM's file sys from without (\\WSL), and you can access the host's file sys from within (/mnt/c). But this is akin to accessing a file system on another machine, meaning it's all virtual drives/shares. The VM must be running, for example. This isn't done by accident.

        git-bash uses MSYS, right? I did mention that.