Slashdot Mirror


Linux Subsystem Files To Become Accessible via Windows File Explorer (zdnet.com)

One of Windows Subsystem for Linux's more annoying tricks is it's hard to get at your Linux files from Windows. From a report: Oh, you can do it, but you take a real chance of ruining the files. To quote Microsoft, "DO NOT, under ANY circumstances, access, create, and/or modify files in your distro's filesystem using Windows apps, tools, scripts, consoles, etc." In the forthcoming Windows 10 April 2019 Update, aka Windows 10 19H1, this Linux file problem will finally be fixed. According to Craig Loewen, a Microsoft programming manger working on Windows Subsystem for Linux (WSL), "The next Windows update is coming soon and we're bringing exciting new updates to WSL with it! These include accessing the Linux file system from Windows, and improvements to how you manage and configure your distros in the command line."

73 of 123 comments (clear)

  1. Funny by Anonymous Coward · · Score: 4, Insightful

    I could access Windows files on Linux just fine. Some OSs are behind the times I guess.

    1. Re:Funny by Kremmy · · Score: 1

      If Windows worked just fine with UNIX line endings, they wouldn't have waited until 2018 to patch support into Notepad...

    2. Re: Funny by spongman · · Score: 1

      In many cases, the ting that makes the most sense is backwards compatibility.

    3. Re:Funny by mcswell · · Score: 1

      I haven't seen that. I use CR in my linux programs to create a running tally of the number of records my program has processed. Of course I don't cat that to other programs, but I can't imagine crashing a program if I did.

      What *really* bothers me on Linux tools is how hard it is to use most such tools with non-ASCII Unicode characters. Try grepping Devanagari or Arabic characters, for example, or using sed to modify such text. (I'm not saying Windows is better, in fact I've never really tried to do such things in cmd.exe.)

  2. Which Linux users really care and why? by couchslug · · Score: 1, Informative

    It's trivially easy setting up a proper VM and doesn't cost a dime.

    If you know how to use Linux, installation is nothing. If you don't, you don't need Linux or WSL.

    --
    "This post is an artistic work of fiction and falsehood. Only a fool would take anything posted here as fact."
    1. Re:Which Linux users really care and why? by vegabook · · Score: 2

      uses a lot more RAM though.

    2. Re:Which Linux users really care and why? by CoolCash · · Score: 1

      I do. I use Windows for most of my job, but once in a while running bash and other scripts is just easier than Windows.

    3. Re:Which Linux users really care and why? by kqs · · Score: 1

      I can see a few reasons for using WSL. Installing and maintaining a whole Linux VM is more effort/support/danger than needed for people who just need a program or two and have little Linux experience.

      My bigger question is: "wait, linux files were visible to windows programs, but accessing them could cause corruption? WHY WAS THIS EVER A THING???". This seems like a terrible implementation. I could see it for a "this is really beta, here play with it, but we'll be fixing this terrible feature within a month" product, but that's it. But then, I don't mount a filesystem r/w between multiple VMs because it's a terrible idea and I feel dirty for even considering it.

    4. Re:Which Linux users really care and why? by hamster_nz · · Score: 1

      I use WSL quite a bit on my work laptop. Why?

      - It complies with our security policy

      - I can use things like linux-based microcontroller tool chains exactly as I would on my Linux boxes at home

      - I don't have problems with USB passthrough with serial adapters

      - I can awk, grep, cut and sed files in my windows file system without any file sharing hassles

      - I can use gcc to build little utilities as needed

      - ssh and scp are easier to use from WSL

      - it is always there - one click away on the task bar

      Sure, it has a few tiny foibles, but is just simpler than using a VM.

    5. Re:Which Linux users really care and why? by Alain+Williams · · Score: 1

      I use WSL quite a bit on my work laptop. Why?

      - ssh and scp are easier to use from WSL

      And because it is running under MS Windows, the telemetry gets to send all your keystrokes, including passwords, back to Microsoft HQ ... lord knows where they go beyond that!

      If you want to run both operating systems on the same machine: install Linux first and run MS Windows is a VM --- it is much safer that way.

    6. Re:Which Linux users really care and why? by williamyf · · Score: 1

      [...]

      My bigger question is: "wait, linux files were visible to windows programs, but accessing them could cause corruption? WHY WAS THIS EVER A THING???". This seems like a terrible implementation.[...]

      In reality, by default, you were supposed to see the files read only. Just like in a mac with bootcamp, were from the macOS side you can see the NTFS files read only, and from the Windows side, you could se the HFS+ files read only. If you bypased the protections (say, by installing FUSE on macOS, or, in this case, fumbling with the WSL configuration) and got RW access, corruption could ensure.

      This release seems to finally fix that.

      --
      *** Suerte a todos y Feliz dia!
    7. Re:Which Linux users really care and why? by hamster_nz · · Score: 1

      My employer mandates Windows OS for corporate laptops. Not my data, not my call.

    8. Re:Which Linux users really care and why? by williamyf · · Score: 2

      Many linux users do care. Those that use Linux at home (or used it at a previous job, or learned it in the university), and would like to use linux at work, but their company policy forbids it. Also, may, many, windows users care about it too...

      There are a bunch of reasons to use this WSL thing. But before we get to those reasons, let's clarify something. If someone is already happyly using Linux, WSL will not make them go back to Windows. WSL is targeted to people who must use windows, or want to use Windows, for most of their tasks. After all, if most of your SW was in linux, and your company allowed you to run linux, you would be running Linux on the bare metal, and would be dualbooting windows (for gaming), and running windows in a VM from the raw partition (for other SW) like I do on my MAC (with macOS instead of linux, but you get the idea).

      Many of the reasons for WSL were articulated elsewere in the thread, but I'll recap and add some of my own:

      1.) Reiterating, for whatever reason you must run Windows (company policy, most of your SW is in Windows, you are more familiar with windows, etc), yet you need some specific linux things for whatever reason*.

      2.) Your machine can not run a VMM because:
      2.a) Your machine is low on resources to run a VM. Not unheard of in corporate, even for technical people.
      2.b) Your processor does not support VM acceleration, which leads you to low performance, which leads you to 1.a).
      2.c) The manufacturer of said machine disabled HW VM Acceleration in the BIOS/UEFI, which again leads to 1.a)
      2.d) Your company's policy does not allow you to run the VM SW, or the company policy disables the VM acceleration in the firmware (or both).

      3.) You do not know or care to learn how to set up a VMM (Virtual Machine Monitor, ex. WMware Player, VirtualBox, etc). *

      4.) You do not know how or do not want the hassle to create the VM and install a distro from scratch. Nor the pain of configuring USB passthroughs, shared folders, shared clipboards and whathaveyou. *

      5.) You do not want to learn the ins and outs of alternatives like Cygwin* (or you are forbiden to run it as per company policy)

      Now, what are the advantages of using WSL:

      i.) Is right there on windows, so all previous 5 points are solved in one fell swoop.

      ii.) If you want to do some shell script or use some SW (say, ssh) that for whatever reason is easier for you on *nix than on powershell, is right there.

      iii.) If there is a piece of SW that you need to use that is linux only (say, as some poster indicated, toolchains for enbeded SW development), is right there.

      iv.) All pheripherals are integrated. So no USB/PCI passthough, or weird interactions because of the VM drivers, or GuestAdditions to install.

      v.) Performance is better than in a VM, for both the Windows side and the Linux side.

      vi.) If you are a windows user who wants to learn or experiment with the comand line side of linux, is a good place to start.

      vii.) If there is some linux thing you need to test, perhaps you can test it here.

      viii.) If there is something you need to develop, and your IDE runs here, you can develop it here.

      JM2C YMMV

      * Believe it or not, some very smart and technically inclined people do not like to endlessly fiddle with computers as an end to itself, for them the computer is a tool to do a job, and the idea is to do the job through the path of less ressistance.

      I used to fiddle a lot in my young age, CP/M, Apple DOS, C64, MS-DOS, Windows, OS/2, FreeBSD, Linux, and in my Sysadmin days, Solaris, HP-UX, Linux, Windows, Sinix, VMS to name a few. But, nowadays I value other things in my life. My confort included. The liberty to fiddle when I want to , instead of being forced to fiddle because something goes wrong. So macOS it is, with VMs for windows, Khali, Tails and #!++ and Bootcamp for games... Nice GUI on the outside, commercial SW aplenty (word, excel, and powerpoint are very usefull when interacting with corporate clients), BSD-ish guts, well integrated HW/OS/Kexts. The only thing to complain about is the price of the combo, but that is why I worked hard, to be able to afford some luxuries. (Before you ask, android cellphone, no tablet).

      --
      *** Suerte a todos y Feliz dia!
    9. Re: Which Linux users really care and why? by spongman · · Score: 1

      Itâ(TM)s a single operating system, remember, windows. It just happens to be able
      To run elf binaries. The same issues arise if you run any two applications that mess with the same files without adequate locking.

    10. Re:Which Linux users really care and why? by AmiMoJo · · Score: 1

      One use case WSL works well for is cross compilation using a Linux based toolchain. Similarly when building .NET based software you can compile and test Linux binaries using Mono without the hassle of a VM.

      Clearly the desire to have all this stuff has been there for many years, hence the existence of CygWin and several others.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    11. Re:Which Linux users really care and why? by pnutjam · · Score: 1

      Grab a copy of MobaXterm, it's runs off a USB and gives you access to all the bash tools along with an Xserver and some other nice stuff. I used it alot when I was in a controlled environment.

  3. for what gain really? by nimbius · · Score: 1, Insightful

    microsoft still hasnt explained exactly what they hope to achieve with the linux subsystem work. namely, what is it you hope to offer of value to something that you could install for free from any of more than 30 cloud providers and hundreds of VPS hosting sites? Who would actively go out of their way to add windows as a layer of complexity, and most importantly, why??

    --
    Good people go to bed earlier.
    1. Re:for what gain really? by Anonymous Coward · · Score: 1

      They hope to achieve EEE.

    2. Re:for what gain really? by Anonymous Coward · · Score: 1

      It's about keeping their user base and expanding their other business *cough 365 cough*

      Linux doesn't even have proper AD replacements, and now it's all moving out of your datacenters, and soon, your datacenter is *poof* gone.

      Meanwhile geeks will wonder why they delivered all the changes required to undermine their very existence.

    3. Re:for what gain really? by novakyu · · Score: 1
    4. Re:for what gain really? by somenickname · · Score: 1

      I don't know if there is a general use case but there are definitely niche use cases. The niche use cases where I've seen it useful are, amusingly, the same as using WINE on Linux. A lot of the data scientist where I work use WSL because the products we engineer don't have a Windows API and will never have a Windows API. So, we tell them to install WSL, then point them at a README that shows them how to apt-get some stuff, git clone some stuff and off they go doing... whatever data scientist do when confronted with a bash prompt... Probably just type "python" or something.

    5. Re:for what gain really? by AmiMoJo · · Score: 1

      It's primarily aimed at developers, especially web devs who want to run a Linux based stack for local testing. Also great if you want to do cross-development for a Linux target.

      Why not use a VM? WSL consumes far fewer resources, and makes it easier to share files between the two sides with native performance.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
  4. Been able to do this for a decade by Anonymous Coward · · Score: 1, Insightful

    What is the big deal over WSL? There is nothing that WSL can do that I can not already do with VirtualBox and Putty with X forwarding.

    https://www.howtogeek.com/112888/3-ways-to-access-your-linux-partitions-from-windows/

    If Microsoft was not so focused on file system incompatibility, it would have supported EXT2,3,4 a long time ago. It also would have made NTFS more easily accessible from Linux. It also would not have encumbered its file systems with patents and extort money from everyone from TomTom to USB manufactures that interact with those systems.

    Then again, let's not blame Microsoft, a faceless company. Let's blame the CEO (Ballmer) and all of the minions (Brad Smith) that made this extortion possible.

    1. Re:Been able to do this for a decade by halivar · · Score: 1

      If Microsoft was not so focused on file system incompatibility, it would have supported EXT2,3,4 a long time ago.

      You're faulting the folks who picked an FS and stuck with it for 26 years, during which time Linux has at least 5 (that I can think of and used, at least) different file-systems that were the "new standard" all new installs should be on. Look, MS made a lot of boneheaded architectural decisions, but consistent backwards compatibility in their file system (regardless of how awful it is [and it is]) is not one of them.

    2. Re:Been able to do this for a decade by Yosho · · Score: 1

      You're faulting the folks who picked an FS and stuck with it for 26 years

      Are you talking about FAT12, FAT16, FAT32, VFAT, exFAT, NTFS 1.0, NTFS 1.1, NTFS 1.2, NTFS 3.0, or NTFS 3.1?

      To be fair, many of those are backwards-compatible with previous versions, but if you're going to collapse them down like that, it's only fair to do the same with Ext.

      --
      Karma: Terrifying (mostly affected by atrocities you've committed)
    3. Re:Been able to do this for a decade by halivar · · Score: 1

      It's absolutely fair to collapse Ext like that; after all, Ext, at least, kept a chain of compatibility over the same period NTFS did (both began in '93). But it has had, over the last 15 years, plenty of large-share competition with which it was incompatible (this is what I was addressing about GGP's gripe about Microsoft introducing system incompatibility), such as ReiserFS, XFS, JFS, etc.

      Again, not trying to put NTFS on a pedestal; just addressing the notion that is was MS who fragmented the FS ecosystem.

    4. Re:Been able to do this for a decade by novakyu · · Score: 1

      There is nothing that WSL can do that I can not already do with VirtualBox and Putty with X forwarding.

      Really? Can your VirtualBox and putty with X forwarding prevent the overhead of having to run two separate operating systems in order to do a single task?

      WSL accomplishes the same thing that WINE has been trying to do (except, of course, Microsoft gets more assistance with its evil plans than WineHQ ever has).

    5. Re:Been able to do this for a decade by serviscope_minor · · Score: 1

      Look, MS made a lot of boneheaded architectural decisions, but consistent backwards compatibility in their file system (regardless of how awful it is [and it is]) is not one of them.

      Why not?

      It's not like the ext2-ext3-ext4 switchover had any meaningful effect on anything I did except that things got faster and more stable in the event of a power outage, and much more tolerant of me doing stupid shit like having tons of files in one directory. About the main "downside" is I couldn't plug a storage device into a very much older machine and expect it to work out of the box. I never got on the MurderFS bandwagon, but I did run JFS for a while, too. Likewise there was no day to day difference (except lower CPU usage for JFS), or difference upgrading, switching machines and so on and so forth.

      Of all the things that have changed in Linux, the FS type has had some of the biggest benefits and will have been noticed by far the least.

      --
      SJW n. One who posts facts.
    6. Re:Been able to do this for a decade by MightyMartian · · Score: 1

      Um, that's why NFS was developed. And all the Linux file systems, indeed all the *nix file systems conform to certain basic standards which delivers a pretty high degree of interoperability. I get why DOS used crlf , for instance, but I can't sort out why MS has ridden that horse this long.

      --
      The world's burning. Moped Jesus spotted on I50. Details at 11.
    7. Re: Been able to do this for a decade by spongman · · Score: 1

      Why would you want to run a whole other OS with all its overhead just to run a few user-mode programs once in a while?

  5. But still less than a Windows file open dialog by raymorris · · Score: 1

    Yes, a Linux VM will need 128-256 MB of RAM. (WSL isn't competing with Gnome).
    Also, we're talking about people who use *Windows*, where some dialog boxes use that much RAM by themselves.

    1. Re: But still less than a Windows file open dialog by spongman · · Score: 1

      The point is that wsl uses zero ram when youâ(TM)re not running anything in it. Whereas a vm is either using ram doing nothing, or is taking time to boot. Why bother with that unnecessary nonsense?

  6. Education use cases by godrik · · Score: 5, Interesting

    I teach computer science at a state school. And some students laptop can not quite run VMs, for a bunch a reasons (that range from shitty hardware, to not enough memory, and through the virtualization bit got disabled in the BIOS because the constructor wanted to sell a more expensive laptop for developpers).

    I had used WSL for the class. And that was a complete catastrophe. The filesystem interaction were just not working right. I am guessing it is because students went editting the file through the file explorer. But we were getting the strangest bugs.

    So I have told students to absolutely use the VM and we are working around the few cases of laptops that are not quite good enough. And the clas goes fine so far.

    If MS can deliver a working WSL, I may consider using it again.

    1. Re:Education use cases by rednip · · Score: 1

      Unix vs DOS line endings should have always been the 'go to problem check' for a weird error in a Windows to Linux environment, sadly I've seen it in a professional environment dozens of times. Any decent text editor (including those in IDEs) will handle both and resist changing when saving, but notepad had until recently always 'automagically' converted the file to DOS which was the only way to save.

      --
      The force that blew the Big Bang continues to accelerate.
    2. Re:Education use cases by pnutjam · · Score: 1

      I feel like I'm spamming this, but I hope it's useful. Try out MobaXterm. It's a much better terminal emulator then putty and it wraps up an Xserver and a graphical file browser like winscp.

      You might consider running local server that the kids connect to with ssh, or forwarded X sessions, or NX.
      One more thing to teach about and in my experience, most linux systems are accessed remotely.

    3. Re:Education use cases by thegarbz · · Score: 1

      2 words: Line endings.

      It's absolutely essential when using WSL that you don't mix line endings. E.g. in Notepad only open files created in WSL first. Or better still use a text editor that allows you to specify the line endings.

      Other than this issue there should really not be any reason WSL doesn't run like a standard VM (at least as far as features which it's capable of are concerned e.g. you don't need a GUI).

  7. one way by geoskd · · Score: 3, Insightful

    Notice that all of these changes to windows are 1 way: They all provide windows access into the linux sub-systems, not the other way around... This is not an accident, and it is not in your best interests

    Do not use MS products unless you want to continue your guaranteed lock in as their cash cow. You are the product, you are for sale, but you will not see a dime of the profit.

    --
    I wish I had a good sig, but all the good ones are copyrighted
    1. Re:one way by Anonymous Coward · · Score: 1

      Umm.... /mnt/ seems to get to all my Windows drives from WSL just fine?

    2. Re:one way by thegarbz · · Score: 1

      They all provide windows access into the linux sub-systems, not the other way around... This is not an accident

      You're right, this is not an accident. This is the result of MS's malevolent actions of ensuring the OTHER direction works first. How fucking dare they!

    3. Re:one way by spongman · · Score: 1

      wow, your use case must be really different from mine. i have never needed to do any of these things from ubuntu/wsl and i have been using it since it was made public. the only thing i have found that doesn't work correctly is openconnect, and that's because they haven't implemented the TAP interfaces yet. it doesn't really matter as i can just run the win32 version of openconnect just fine.

  8. Cygwin already did better. by ron_ivi · · Score: 2, Informative
    Twenty four years ago (when it launched) Cygwin got reputation of being a bit flakey; but it's come a long way in the past two and a half decades.

    If you haven't tried it recently, you can think of it as a lighter-weight and more complete version of WSL.

    1. Re:Cygwin already did better. by cdwiegand · · Score: 4, Insightful

      Hahaha. Wow... really? you know that WSL comes with full, real distros, like Ubuntu, right? Cygwin still doesn't have a command line way to install packages. No apt-get install anything, or (ugh) rpm -ivh some.rpm. Updates are non-trivial, you have to use a GUI, instead of just do-release-upgrade (or whatever Suse/Redhat/etc. use). Give me WSL any day of the week over Cygwin.

      --
      . Define sqrt(x) as something really evil like (x / rand()), and bury it deep. Watch your coworkers go nuts.
    2. Re: Cygwin already did better. by spongman · · Score: 1

      More complete? Err, not even close, son.

    3. Re:Cygwin already did better. by Kremmy · · Score: 1

      Cygwin is SLOW.
      WSL must have significantly less overhead than cygwin to be so fast.
      WSL is lighter weight and more complete, offering the userland of multiple distributions.
      It's weird and all but you can't beat the native Linux support :P

    4. Re:Cygwin already did better. by Anonymous Coward · · Score: 1

      It is definitely not 'lighter weight'. WSL is actually lighter weight because it is doing syscall emulation at the kernel level; Cygwin has to emulate things in userspace, which for instance leads to absolutely horrible forking performance because that's just not something the Win32 API is designed to do.

    5. Re:Cygwin already did better. by pnutjam · · Score: 1

      If your stuck on windows, and you haven't tried MobaXterm, your missing out. It's got an Xserver, cygwin, scp browser, etc., all baked in. There is an install version and a portable version.

      It's only free as in beer, but your already using windows.

    6. Re:Cygwin already did better. by thegarbz · · Score: 1

      Lighter weight? Undoubtedly

      More complete? ... hahahhahahaha. Oh man. You had such an air of authority about you until you announced to the world that you've never compared the 20 year old baby of Cygwin to WSL.

  9. Re:Deliberate incompatibility by Anonymous Coward · · Score: 1

    Why did Microsoft make systems paths with C:\this\slash instead of /this/slash? Deliberate incompatibility.

    And VMS used [diskroot.folder.folder]. Different systems from an era where compatibility wasn't even an idea of a thing.

    Why did Microsoft make their line endings different? Deliberate incompatibility.

    Unix used line feed. Early Macs used carriage return. MS-DOS and VMS used carriage return and line feed - which made the most sense to me, since you could copy text files straight to a printer with no driver. All choices made long before compatibility was even a thought, let alone a goal.

    News story: Microsofts deliberately broken shit, still expensive and broken. Marketing in progress.

    They have, but not here. Look harder for a place to direct your MS hate.

  10. It's using Plan 9 (for real) by netux · · Score: 1

    This is actually really cool since you can interact with the Plan 9 system and do all kinds of crazy stuff. The big question will be how much can we get into that part.
    Those of you that are wondering what kind of stuff, you could force the FS to only see files as lowercase, you could have it be case insensitive, you could have if be case sensitive on match and insensitive otherwise, mount remote plan 9 filesystems (good ol' grid computing). It could be a MUCH bigger deal than it seems.

  11. Re:Deliberate incompatibility by williamyf · · Score: 4, Informative

    For Ctrl+c for copy, you should blame Xerox P.A.R.C., not Microsoft. Actually, microsoft follows convention. In the GUI ctrl+c is for copy, while Ctrl+c in comand line is interrupt, just like in *nix. So, no "deliberate incompatibility"

    About c:\folder\subfolder, you should ask the CP/M guys. You see, they used the / for parameter passing, so when MSoft decided to support folders in MS-DOS 2.0 onwards, the character was already in use. Actually, if memory serves well, there was an obscure command in early MS-DOS to change the path separator to / . Since no one used it, it was retired without much fanfare. So no "deliberate incompatibility here". As a matter of fact, at that time MSoft was selling a unix (called Xenix) and, if anything, they wanted MS-DOS and Xenix to converge, that's why they included the aforementioned obscure command.

    About the line endings, as some other comentator indicated, using CR+LF together meant that you could copy a plain text file to the printer directly without further conversion. And also, dos (and windows latter), mac and *nix all had differnt ways of skinning that particular cat. And do not even ask about the complications of line separation in VMS, you will not believe it!!!. So, no "deliberte incompatibility" here.

    If you want examples of deliberate incompatibility, better check your history books for things like running Windows 3.x on DR-DOS, or running lotus 123 on early versions of Windows, that sort of thing, but, the three examples you choose, don't quite cut it.

    --
    *** Suerte a todos y Feliz dia!
  12. Re:Deliberate incompatibility by dryeo · · Score: 2

    Why did Microsoft make "Ctrl-c" the keyboard shortcut for copy? Because ctrl-c on unix hard exits programs.

    For Mac compatibility. The correct Windows shortcut for copy is ctrl-insert, paste is shift-insert and cut is shift-del. Try them, they still work fine, even in most Linux programs.

    The slash vs backslash comes from copying CPM where slash was used for parameters and there were no subdirectories. In this day, all programs should support both slash and backslash as directory separators

    MS line ending are actually more correct, a CR (carriage return) to bring the cursor to the beginning of the line and a LF (linefeed) to do a linefeed. Trying to save bytes resulted in using a linefeed as a line ending. Apple was closer where the CR as a line ending was much like a typewriter. BTW, back in the '60's, the ASCII standard was decided.to have both as EOL chars rather then a dedicated one.
    The : goes back to PDP 8 where devices ended with a : such as CON: before you ask.

    --
    https://en.wikipedia.org/wiki/Inverted_totalitarianism
  13. Re:Deliberate incompatibility by gawbl · · Score: 2

    Sorry to be pedantic... IIRC, DOS file I/O primitives would accept either '\' or '/' as a path separator. COMMAND.COM was the issue; it would always interpret '/' as the beginning of a command-line option. If you were writing a command-line utility, it could employ "C:\path\to\my\file" or "C:/path/to/my/file". Actually, I think you could pass "C:/path\to/my\file" and that would still work. Yes, there was an internal variable inside DOS that recorded the option character; I think it was "SWITCHAR", and you could alter it in your environment (e.g. AUTOEXEC.BAT). Setting "SWITCHAR=-" meant that COMMAND.COM options now begin with '-', like UN*X. This took effect on the command-line, and inside .BAT files. But now your .BAT files are incompatible with everybody else's system...

  14. Re:Deliberate incompatibility by gawbl · · Score: 2

    Oh, yeah. I think CP/M copied the "/option" convention from DEC's RSTS.

  15. Re:Deliberate incompatibility by squiggleslash · · Score: 1

    Why did Microsoft make "Ctrl-c" the keyboard shortcut for copy? Because ctrl-c on unix hard exits programs.

    They didn't. That was Wordperfect. In MS DOS and MSBASIC before it ^C means break, just like it does in Unix.

    Why did Microsoft make systems paths with C:\this\slash instead of /this/slash? Deliberate incompatibility.

    Quite the opposite. When MS DOS first came out, it didn't support subdirectories (each disk just had a root directory.) The designer (MS DOS was bought, not written, by Microsoft) chose to use "/" as a prefix for options to DOS commands (for example "DIR /W") - similar to, for example, DCL

    When MS DOS 2.0 came out Microsoft added subdirectories. They chose backslash because it was the nearest thing they had available to regular slashes, but slashes were already used by legacy software to indicate command line options. There's supposedly a switch you can throw that flips the meaning of backslashes and slashes, but it wasn't default because MS DOS 2.0 was supposed to be compatible with MS DOS 1.x. I don't know if it still exists in NT based operating systems, my guess is not.

    Anyway, the reason Microsoft wanted slashes, and wanted to make them at least available, is because for a time the "high end" OS it wanted to push was its own version of Unix, Xenix. So, actually, yes they did want to use the same format, they just couldn't make it default.

    Why did Microsoft make their line endings different? Deliberate incompatibility.

    No, deliberate compatibility. At the time MS DOS was written, the "standard" operating system was CP/M. MS DOS contained some features designed to make it easy to live in a CP/M world. This included a similar API, making it easier for CP/M software to be ported. But they also adopted, wholesale, the format for CP/M text files, which are: plain ASCII, CR+LF for EOL, and ^Z for EOF.

    FWIW Bear in mind both (let's forget the ^C thing given you're wrong, cmd.exe treats ^C as break too) of the decisions you're criticizing that aren't false were made before 1982, when Unix was something most people ran on minicomputers, was still relatively obscure, and when the company that was doing the most to try to make it available for PCs was... Microsoft.

    --
    You are not alone. This is not normal. None of this is normal.
  16. Re:Deliberate incompatibility by williamyf · · Score: 2

    Switchchar was the eviroment variable for DR-DOS. In MS-DOS the procedure was different, but the idea was the same. Do not feel bad though. I can't remember how it was done in DOS either, It has been a looong time.

    --
    *** Suerte a todos y Feliz dia!
  17. Re:Lol, which one? by novakyu · · Score: 1

    I assume they mean ReiserFS. It's the "killer app" for Linux.

  18. Re:Finally by arglebargle_xiv · · Score: 1
    Sorry, there was a typo in that headline, please replace:

    Linux Subsystem Files To Become Accessible via Windows File Explorer

    with:

    Windows Malware Now Gets Access to Linux Files as Well

  19. MSYS2 by weberjn · · Score: 1

    MSYS2 is the better WSL.
    No problems with filesystems, does not break Windows update, perfect integration, pacman package manager.
    No ELF, but never missed it, pacman brings all the good tools.

    1. Re:MSYS2 by weberjn · · Score: 1

      and I forgot: does not need Aministrator rights to install.

    2. Re:MSYS2 by spongman · · Score: 1

      the problem is that all the compatibility stuff in msys2 just doesn't quite work right. it's not that it's buggy, it's due to what it's trying to do: provide a compile-time windows/posix compatibility layer. which, of course, is impossible. it has to make tradeoffs.

      wsl is the better cygwin. it's kernel-mode. it's distro-agnostic. and the compatibility is excellent.

  20. WSL vs MSYS2 by weberjn · · Score: 1

    I once compared WSL and MSYS2 git checkout times. Practically equal.
    Then I compared Ubuntu in VirtualBox and WSL. The latter 20-fold slower. Until I excluded the folder from Security Essentials scanning ..

  21. Weird use cases, like opening files :) by raymorris · · Score: 1

    > Why bother with that unnecessary nonsense?

    My use case may be different, but sometimes I like to do weird things, like open a file. Microsoft says WSL will destroy my files if I do that. I have no problems opening files in either Windows or Linux when using Virtualbox.

    I happen to have 256MB available, maybe you don't. People with only 512MB of physical memory probably don't want to use Virtualbox. Or Windows.

    I do have a machine running some Perl scripts on Windows which were designed for Linux. We've been using Cygwin. WSL might be a good option for that.

    1. Re:Weird use cases, like opening files :) by pnutjam · · Score: 1

      Is WSL an option on Windows versions that will function on 512mb of RAM?

    2. Re: Weird use cases, like opening files :) by spongman · · Score: 1

      If you mount your file system in vbox so both machines can see the same file and you modify it at the same time with programs on both machines then youâ(TM)ll get corruption.

      Same thing in wsl.

      I recommend thinking a little more before posting.

  22. Re:Deliberate incompatibility by ortholattice · · Score: 1

    Originally, the CR came before LF for the following reason. Teletypes, at 10 char/sec, could complete an LF in 1/10 sec, but a CR could take up to 1/5 sec. It was 100% mechanical, with no buffering. With the CR issued first, both would complete in 1/5 sec, ready to print the first character on the new line.

  23. Re:Deliberate incompatibility by dryeo · · Score: 1

    Good point. All (or most?) of the CTRL characters were about controlling the printer and probably go back to before computers.

    --
    https://en.wikipedia.org/wiki/Inverted_totalitarianism
  24. Re: Nice! by spongman · · Score: 1

    It doesnâ(TM)t use hyper-v. Itâ(TM)s not a VM.

  25. No, not the same at all. See summary by raymorris · · Score: 1

    Not at all the same thing in WSL. Let me quote the summary for you, and then explain further:

    "DO NOT, under ANY circumstances, access, create, and/or modify files in your distro's filesystem using Windows apps, tools, scripts, consoles, etc." says Microsoft.

    Here's the next sentence from MSDN:

    Creating/changing Linux files from Windows will likely result in data corruption and/or damage your Linux environment requiring you to uninstall & reinstall your distro!

    The issue is that creating a file or opening a file from Windows, without ever touching it from Linux, frequently damages the directory that it is. (Directory means "folder", for the Windows folks"). So saving a new text file inside of /usr makes all of /usr inaccessible and you have to reinstall the OS.

    WSL is a cool idea. Not quite ready from prime time, it seems.

    1. Re:No, not the same at all. See summary by spongman · · Score: 1

      no. if you edit wsl distro files with windows tools, you might mess things up if you're not careful. but similarly if you mess with a native linux distros system files and you're not careful you can also mess things up. i edit my own wsl files in both ubuntu & wsl tools all day long and i have never run into any issues. i even have some files open in editors in both environments and i see updates in one tool (eg ubuntu vim) appear in the other tool (eg win32 vscode). but i don't edit sensitive system files in notepad, for example, because i'm not an idiot.

  26. I guess Microsoft is wrong :) or you can learn by raymorris · · Score: 1

    So there are two possibilities here. Either:

    A) Microsoft is horribly wrong, and is strongly warning people about a major problem with their software that doesn't actually exist.

    B) Your first guess when you soon the summary wasn't quite right. Once you got an idea, you refuse to learn any new information because that would mean you were DUN DUN DUN wrong! Omg that's not possible that you don't already know everything!

    Here's the thing, all of us had to learn how to count, and how to use the potty. We weren't born knowing everything, and now of us knows everything today. *We all already know* that you don't know everything. Trying to pretend you know everything is futile. Nobody will fall for it. Even on this bug specifically, trying to pretend you know better than Microsoft is futile, we ALL know better. The *only* way you can look good or look stupid is this -
    Your response to new information tells us whether you are smart (capable of learning new things) or purposefully ignorant (refusng to learn from new information). The only way to look smart is here is to say "oh, okay, I really that wrong the first time".

    There is zero chance you're going to convince anyone that Microsoft is shipping an update to fix a major bug that doesn't exist. You can only convince us that you are able to process new information and learn, or that you aren't able to.

    1. Re:I guess Microsoft is wrong :) or you can learn by mcswell · · Score: 1

      I think you misunderstood spongman. He said he could edit wsl files in ubuntu and wsl tools, but he did not edit wsl files with *windows* tools. That seems to correspond with the Microsoft statement.

      For the record, I do the same as spongman: I edit my .bashrc etc. wsl files with vi in a wsl terminal (Ubuntu bash), no problem. I would not attempt to edit those files using, for example, my Windows jEdit editor. That said, I have a link from my /home/ dir to the dir I keep my Windows data in (for the record, I use c:\Data\), and I can edit files *there* with both wsl files and with my Windows editor, no problem.

    2. Re:I guess Microsoft is wrong :) or you can learn by raymorris · · Score: 1

      I wish I did misunderstand. But here are his exact words:

      --
      you modify it at the same time with programs on both machines then you'll get corruption.
      Same thing in wsl.
      --

      He in fact said that of you simultaneously modify it in both operating systems at once, that could corrupt the file. Of course two programs writing to the same file at the same time without coordinating will result in garbage - that's not a bug for which Microsoft is issuing a major fix. There is no find for that.

      The truth is that opening or creating a file in Windows, without ever touching it from the Linux side, can destroy the entire directory it is in, requiring that the system be wiped and reinstalled. That's per MSDN. The issue isn't two programs accessible the same file. The issue is when Windows goes to update the last-modified time, which is part of the file's directory listing, it does it wrong and destroys the directory.

  27. Re:How big of an idiot by mcswell · · Score: 1

    You have to be like me. How big of an idiot are you?