Slashdot Mirror


There's Bugs In The Windows 10 Implementation of Bash (altervista.org)

First-time submitter Big O Notation shares "an honest review about the new Ubuntu Bash" that shipped with the Windows 10 Anniversary Update. While it's still officially beta, most of the commands work as expected, and it includes popular programs like the Pico text editor. Here's some of the review's highlights: Pros: You can also manage and manipulate other files inside your entire Hard Disk, even those outside of your Linux home directory.
Cons: Even if you chmod something properly, when you use ls -l the Bash would not show the correct permissions. [And] if you try to create a Folder in your Linux Home Directory by using the Windows GUI, it would be impossible to read and manage it. Don't try this at home.

Microsoft says they've included the Windows Subsystem for Linux primarily as "a tool for developers -- especially web developers and those who work on or with open source projects." One Scandinavian developer has even tried running X on Bash on Ubuntu on Windows, reporting success running simpler programs like xcalc and xclock, as well as Gnome Control Center and xeditor and SciTE. "Things start to fall apart if you try to get more ambitious, though."

163 comments

  1. Slow news day? by Anonymous Coward · · Score: 5, Insightful

    That "review" is tiny and doesn't really tell you much. It doesn't even say what happens if you do mess with the Linux subsystem directories from Windows apart from "it would be impossible to read and manage it". Grats for random guy getting a ton of ad hits on a crappy 5 minute blog post. Woo.

    1. Re:Slow news day? by Anonymous Coward · · Score: 0

      That "review" is tiny and doesn't really tell you much. It doesn't even say what happens if you do mess with the Linux subsystem directories from Windows apart from "it would be impossible to read and manage it". Grats for random guy getting a ton of ad hits on a crappy 5 minute blog post. Woo.

      It's only superficially usable, otherwise it's a waste of time and system resources. Install virtual box and run the Linux distro of your choice in a vm, or use cygwin instead.

      Also the network stack associated with the windows versions that are required for bash are abysmal crap that crash vpn clients and sometimes require a full reboot to get back on line. I had one where the VM would not connect at all, next update fixed it, but they're still hit & miss crap.

    2. Re:Slow news day? by Anonymous Coward · · Score: 0

      Anything to hurt Spyware 10 is welcome.

    3. Re:Slow news day? by LVSlushdat · · Score: 0

      Better known as "Windows NSA Edition" or "Windows CTD Edition", CTD being "Computer-Transmitted Disease"... Having escaped the Microsoft ecosystem about 6 years ago, I sit back and laugh my ass off at the crap people who still use MS products have to put up with... So damn glad it isn't me anymore....

      --
      THANK YOU, Edward Snowden!! Americans owe you a debt of gratitude (whether they know it or not..)
    4. Re:Slow news day? by shutdown+-p+now · · Score: 1

      It's also written by someone who has no clue what they're talking about "Windows 10 implementation of Bash", really? It's called WSL, and it runs native Linux binaries. There's no implementation of Bash there other than the one that's in Ubuntu.

      As for the bugs, it's the inevitable outcome of trying to cram a Linux filesystem in an NTFS directory (which is there for the ease of installation and convenience). If you want the real thing with 100% fidelity, loop mount ext4 (of course, then you lose easy access to it from Windows).

    5. Re:Slow news day? by gwjgwj · · Score: 1

      of course, then you lose easy access to it from Windows

      Not really, ext2fsd works quite well.

  2. Can't even match Cygwin by Todd+Knarr · · Score: 2, Insightful

    So basically MS's Linux subsystem can't even do the job Cygwin does quite nicely? I think MS ought to go and read the code, learn some lessons and carry it back. It's not like you can't translate Unix permissions to Windows' permissions system and vice-versa, the code's even right there to read.

    1. Re:Can't even match Cygwin by Rosco+P.+Coltrane · · Score: 5, Interesting

      I think MS ought to go and read the code, learn some lessons and carry it back

      They haven't done that in 4 decades. Why would they start now?

      --
      "A door is what a dog is perpetually on the wrong side of" - Ogden Nash
    2. Re:Can't even match Cygwin by thegarbz · · Score: 4, Insightful

      That depends on what you call match or what you call quite nicely. By all accounts Microsoft's effort has well and truly blown Cygwin out of the water in terms of both speed and ability to get things running.

      Also if you think Cygwin was feature complete and bug free with version one then you're utterly delusional.

    3. Re:Can't even match Cygwin by TheRealMindChild · · Score: 1

      Cygwin's X server actually works

      --

      "When life gives you lemons, don't make lemonade. Make life take the lemons back!" -- Cave Johnson
    4. Re:Can't even match Cygwin by thegarbz · · Score: 2

      So does Window's. Also of note is that Ubuntu with full X server runs too.

    5. Re:Can't even match Cygwin by ewibble · · Score: 2

      Not by all accounts at all, there system is more like a VM that you can run linux in.

      for example want to git, go apt-get install git great but if you want to use it outside of the shell install it again for windows.

      cygwin I can run windows executables in it and cygwin executables from windows.

      accessing the linux file system is a bit contrived from windows, some app data directory under the users directory I think

      ping, sudo doesn't work (at least when I tried it)

      For now I will stick to cygwin

    6. Re: Can't even match Cygwin by RLaager · · Score: 1

      Serious question: Windows has an X server? I have successfully setup third-party Windows X servers with Ubuntu-on-Windows, but there is a first party one?

    7. Re:Can't even match Cygwin by Darinbob · · Score: 3, Informative

      Cygwin mostly uses a thick compatibility layer that slows things down a lot but makes things really compatible with Unix, such that you need no or minimal effort to get off the shelf unix software to run under it. So it's great in the sense that you get what you expect, but it always feels just a wee bit slow.

    8. Re: Can't even match Cygwin by Billly+Gates · · Score: 3, Informative

      That's a little extreme.

      Cygwin is very outdated and uses translated calls from POSIX to win32 with all the bugs and glory on both platforms combined.

      Last I checked you couldn't run major products. Also what good is it? Everything in Windows is an object, not a text file. You cannot cat your event viewer files nor can you use awk, sed, and grep for WMI on your PC. MS is native and more apps are supported.

      This is 2016. If any geek is stuck on Windows or Linux and need an app on another platform you run a virtual machine. Let Linux be Linux and Windows be Windows. Win 10 has Hyper-V and virtual box and qemu is free on Linux.

    9. Re:Can't even match Cygwin by Ash-Fox · · Score: 4, Insightful

      So basically MS's Linux subsystem can't even do the job Cygwin does quite nicely?

      Cygwin can't run native Ubuntu elf executables which is wehat the Linux subsystem does.

      I think MS ought to go and read the code, learn some lessons and carry it back.

      How would that help? Cygwin doesn't execute native ELF executables to begin with.

      It's not like you can't translate Unix permissions to Windows' permissions system and vice-versa, the code's even right there to read.

      Cygwin depends on extended meta attributes though rather than just translating alone?

      --
      Change is certain; progress is not obligatory.
    10. Re:Can't even match Cygwin by umafuckit · · Score: 1

      I tried it briefly and found that commands such as htop and nload didn't work. So it seems like little the Linux sub-system is little more than a curiosity at present.

    11. Re: Can't even match Cygwin by Anonymous Coward · · Score: 0

      The point of wsfl is that you don't have to recompile everything to get it working.

      Cygwin is a disaster that should never have been born.

    12. Re: Can't even match Cygwin by Anonymous Coward · · Score: 0

      I diagree. Nobody claimed that Cygwin is perfect, but GP is correct in that it does indeed do its job quite nicely. Notice the use of "even Cygwin", indicating awareness of Cygwin's limitations.

    13. Re: Can't even match Cygwin by Anonymous Coward · · Score: 0

      Because it would be copyright infringement.

    14. Re:Can't even match Cygwin by The+MAZZTer · · Score: 1

      Cygwin sometimes throws the strangest errors, and when searching for info I find lots of dev comments on how support for various things that don't exist natively in Windows often had to be hacked together and doesn't always quite work. Cygwin is a giant hack, and while it's a hack that for the most park works quite nicely, I am glad to see MS take a stab at it.

    15. Re:Can't even match Cygwin by Dracos · · Score: 0

      MS has spent over two decades ignoring the CLI shell; they don't care about it and don't understand it, they only understand GUI. Powershell is proof of that, only people who have disdain for CLI would produce that absurdly verbose monstrosity.

    16. Re:Can't even match Cygwin by donaldm · · Score: 2

      I think MS ought to go and read the code, learn some lessons and carry it back

      They haven't done that in 4 decades. Why would they start now?

      I think Microsoft's attitude of "If it ain't invented here" is a big stumbling block. Afterall Cygwin has been around since 1995 and must have been doing something right.

      --
      There ain't no such thing as proprietary standards only proprietary formats. Standards are by definition open.
    17. Re:Can't even match Cygwin by Anonymous Coward · · Score: 0

      So basically MS's Linux subsystem can't even do the job Cygwin does quite nicely? I think MS ought to go and read the code, learn some lessons and carry it back. It's not like you can't translate Unix permissions to Windows' permissions system and vice-versa, the code's even right there to read.

      There is no one or easy way to map between NTFS or NFSv4 ACLs and Unix octal permissions. It's not even remotely surprising that new files or directories created outside of the Linux environment don't map to useful permissions under Linux in their first pass.

      I don't know exactly how Cygwin does it, but I know how some NAS appliances do it and I'm sure there's plenty of room for everyone to do it a little or a lot differently.
      It's a HACK. Every implementation of this is.

      Next time you need to reach for the permissions tab in Windows, I DARE you to use cygwin's chmod instead.

    18. Re:Can't even match Cygwin by Todd+Knarr · · Score: 2

      There's no one single way, but there are several much more useful ways such that files created through Windows have the expected permissions in Cygwin (user read/write) and files created through Cygwin are accessible in Windows (user can read and write them). There's no excuse for the Linux subsystem not being able to do something reasonable. And yes I've dealt with Cygwin files in Windows and Windows files in Cygwin. It works because Cygwin understands Windows ACLs (see POSIX accounts, permission, and security). Amusingly the mapping system Cygwin uses was based on Microsoft's own mapping system from Services for Unix. So not only does Microsoft have the code for an example of a working method available (Cygwin's code), they wrote the code for a working method (SFU).

    19. Re:Can't even match Cygwin by Anonymous Coward · · Score: 0

      How old is bash on windows? How old is cygwin?

      Of course a new feature has bugs.

    20. Re:Can't even match Cygwin by Billly+Gates · · Score: 1

      MS has spent over two decades ignoring the CLI shell; they don't care about it and don't understand it, they only understand GUI. Powershell is proof of that, only people who have disdain for CLI would produce that absurdly verbose monstrosity.

      I am not a shill or troll for MS by a longshot but have you actually used Powershell?

      There are somethings I dare say gulp I like about powershell over Bash. True MS made the mistake in the NT days of assuming the system admin would be sitting in front of the server in the MDF unlike a Novel Netware or Unix box which assumes you use a tty or console from elsewhere.

      From looking at Server 2016 with the whole Nano Server edition I would say it is IMPOSSIBLE to admin such VM's without powershell. Now the direction is the other way.

      My criticism of Cygwin here which is unpopular is the same of Bash on Windows (not on Unix though) in that Bash and Unix commands assume everything is a file. In Windows everything is an object. Powershell assumes everything is an object by default.

    21. Re:Can't even match Cygwin by Anonymous Coward · · Score: 0

      must have been doing something right

      For small values of "right".

      Honestly Cygwin is alright, it's just incredibly slow for the important stuff (path resolution, I/O, sockets, fork() and threading...). I've definitely used it a lot, but in the late 90s/early 00s, the difference between Linux and Cygwin felt like C vs Java around the same time period. Just was a bit more sluggish than it needed to be.

    22. Re: Can't even match Cygwin by Anonymous Coward · · Score: 0

      There isn't a "Microsoft X Server". But there are native windows X servers like Xming, so you don't have to resort to emulating a Linux userland.

    23. Re:Can't even match Cygwin by Anonymous Coward · · Score: 0

      Not all accounts.

      I've been using the bash/ubuntu off and on for a couple of months; mostly off because it is so abysmal. Everything beyond a the trivial case is broken. Then there's the crap network stack that freeze up randomly while using the VPN requiring a reboot, and on some releases VPN doesn't work at all--had that a month or two ago.

      Cygwin on the other hand, while not bug free, has so much functionality that actually works with windows and It's the first thing I install when I get a new box.

      And as other have mentioned, cygwin's x-server actually works, and has worked for the 10 years I've used it And it provides a much better ssh experience into a Linux server than putty, or windows bash.

    24. Re:Can't even match Cygwin by UnknownSoldier · · Score: 1

      > I am not a shill or troll for MS by a longshot but have you actually used Powershell?

      Can you run commands that start with a number, such as 7z.exe, yet ?

    25. Re:Can't even match Cygwin by Cley+Faye · · Score: 1

      So basically MS's Linux subsystem can't even do the job Cygwin does quite nicely?

      Cygwin can't run native Ubuntu elf executables which is wehat the Linux subsystem does.

      I probably missed the gazillion times this point was raised, but why is this a thing? I get it that you can just run "the same file" but why bother. The linux subsystem is not even close to be a real production environment so you can't validate anything on it anyway. There are so many ways to get a good linux environment that are both way closer to the real thing and can run native binaries (obviously).

      As a developer, I honestly don't see the use case here when I can either run a VM, dualboot, or for most simple project simply build them as windows executable anyway. In which case do you need to run a linux ELF in a butchered down environment that (hopefully) isn't what you'll run the production code in the end?

    26. Re:Can't even match Cygwin by Anonymous Coward · · Score: 0

      gotta go fast

    27. Re:Can't even match Cygwin by Ash-Fox · · Score: 1

      I probably missed the gazillion times this point was raised, but why is this a thing?

      Likely to support proprietary Linux software and do some Linux development too.

      The linux subsystem is not even close to be a real production environment so you can't validate anything on it anyway.

      Honestly, outside of the kernel interfaces which had most common interfaces implemented and a few permission issues, it's a pretty good approximation for real time development of Linux software on Windows in my opinion.

      There are so many ways to get a good linux environment that are both way closer to the real thing and can run native binaries (obviously).

      How many of those integrate with Visual Studio natively, debugger and all?

      As a developer, I honestly don't see the use case here when I can either run a VM, dualboot, or for most simple project simply build them as windows executable anyway.

      I would have found this immensely useful if I was still developing certain software actively as the Linux builds are substantially different, depend on different compilers, libraries etc.

      In which case do you need to run a linux ELF in a butchered down environment that (hopefully) isn't what you'll run the production code in the end?

      I think you're confusing development with testing and deployment. The environment used for the system isn't perfect, but if you can get it running in the environment that has limited kernel interfaces, there is little reason why it wouldn't run in an environment with full kernel interfaces. If you're just writing code that is meant to be cross platform, doing TDD/BDD with windows and Linux variants as you're going along becomes much easier and faster. After when you've completed a sufficient amount of work, you can hand it off to the continuous integration environment and have that produce your builds and perform automated testing on the real (development testing) environments.

      --
      Change is certain; progress is not obligatory.
    28. Re:Can't even match Cygwin by Anonymous Coward · · Score: 0

      I get it that you can just run "the same file" but why bother.

      The point is that it isn't a bother. It is less bothersome. Being unable to run the same file is a bother that this is intended to remove.

    29. Re:Can't even match Cygwin by Anonymous Coward · · Score: 0

      I expect *those* programs to depend heavily on the /proc filesystem. Which I don't expect Microsoft to implement on Windows (at least not anywhere near a full implementation).

    30. Re: Can't even match Cygwin by Anonymous Coward · · Score: 0

      There have been 3rd party commercial X servers for Windows for decades. I used Hummingbird Exceed back in the early 90s. They work, sort of. Frequent problems, blue screens, etc. But it's not real clear if that was the X server or just Windows being Windows...

      Cygwin gives you most of the UNIX tools, command line & GUI, including X windows, for free. Works pretty well. Cygwin can also pop up a shell (bash/tcsh/etc) without bothering with X using mintty, or you can run an X server & use Xterm.

      One caveat: Windows apps don't always want to play nicely with files Cygwin programs have touched/created/etc. (Sometimes they do, but not always.) Rebooting seems to fix this. (Windows, even Win10, is not like Linux with uptimes of years. Windows seems to require constant reboots. I've seen Windows bluescreen before I even launch any apps, just sitting there at the desktop. Dual boot to Linux and everything is fine for years. Your mileage may vary.)

    31. Re:Can't even match Cygwin by The-Ixian · · Score: 1

      As a developer, I honestly don't see the use case here

      These tools are not for you. They are for devops in cloud environments so that they can use the same tools across the board regardless of kernel.

      --
      My eyes reflect the stars and a smile lights up my face.
    32. Re:Can't even match Cygwin by The-Ixian · · Score: 1

      I actually run 7z.exe from one of my powershell scripts.... no problem... is it not supposed to work?

      --
      My eyes reflect the stars and a smile lights up my face.
    33. Re:Can't even match Cygwin by The-Ixian · · Score: 1

      Ever since at least 2007, it seems like all of the new admin GUIs on Windows are really just a wrapper around PowerShell commands.

      This makes me think that CLI is the primary focus and has been for a while now.

      As a matter of fact, even before 2007, to do anything truly advanced, you had to resort to the CLI... it is just that the CLI tools were all discrete and were only as good as the team that created them. Now they are all being unified under PowerShell.

      PowerShell is very capable and actually fun to script with. I am saying this as a Perl guy. I find a lot of similarities between the two of them actually, which I am sure is no coincidence.

      To me, it sounds like your attitude is a relic from a different time and you are using old information to maintain you prejudices.

      --
      My eyes reflect the stars and a smile lights up my face.
    34. Re: Can't even match Cygwin by Curtman · · Score: 1

      Because it would be copyright infringement.

      Zwaaaaa? Bash is GPL. Linux is GPL. Cygwin is GPL, and LGPL. Why would it be infringement?

    35. Re: Can't even match Cygwin by Curtman · · Score: 1

      Cygwin, VNC, VLC, and Chrome are the first things I install with Windows. This wsfl thing seems more like the experience of running Windows in Parallels on OSX than cygwin. I'm sure there are people who want a linux distro installed in their windows partition, but I'll pass. Cygwin works well, I get an ssh server & client, X server, bash, and more that just works and makes using Windows bearable.

  3. UnxUtils aren't buggy by Anonymous Coward · · Score: 0

    I've been using the UnxUtils since the Windows 2000 days, with utilities like grep, cut, sort, sed, etc running right inside the command prompt and useful on the entire system. Can't believe it's taken Microsoft this long to jump on board.

    1. Re:UnxUtils aren't buggy by phantomfive · · Score: 1

      The advantage of this new thing is that it runs Linux binaries directly. If you need to do that, and can't get the source for some reason, then it's great.

      It's also great for programs that have trouble compiling under Cygwin, like dpkg. Other than that, better you use Cygwin. Or better yet, burn Windows and use Linux directly.

      --
      "First they came for the slanderers and i said nothing."
  4. Updating? by MrLint · · Score: 1

    There is at least one post online floating around how to update to ubuntu 16. I dont know how much info there is about fixes in function, or consequences thereof.

    1. Re: Updating? by Anonymous Coward · · Score: 0

      The limitations of the wsfl currentlu mostly stem from incomplete kernel wrap.

      They are mapping Linux kernel Calls to the windows kernel. It's how it fundamentally works. It's the inverse of wine.

      That's how it is so fast, and how it runs Ubuntu elfs.

      All the current limitations and bugs mostly relate to shit they havent got a good solution to for the mapping process. Filesystem permissions, low level networking etc.

  5. He doesn't understand the system by Anonymous Coward · · Score: 1

    Permissions will only work correctly within the linux filesystem. When you're accessing folders on the Windows side through bash, it does a necessarily-lossy mapping.

  6. cygwin by phantomfive · · Score: 4, Informative

    For now, it's still better to use Cygwin.

    --
    "First they came for the slanderers and i said nothing."
    1. Re:cygwin by Gr8Apes · · Score: 2

      For now, it's still better to use any *nix distribution, even a systemd one.

      --
      The cesspool just got a check and balance.
    2. Re: cygwin by Billly+Gates · · Score: 1

      Can you apt-get install to run any binary? I hate cygwin with a passion.

      These days I do virtual machines. Cygwin provides no value if you need to run modern apps bugfree. Same with Linux guys who do wine. If you need to run Windows than do it in a vm

    3. Re: cygwin by phantomfive · · Score: 1

      I hate cygwin with a passion.

      Sounds like an unemotional, clear-minded, rational, unbiased opinion there.
      The election season has probably helped clear your mind. I've noticed that many people have been speaking very rationally in the news lately.

      --
      "First they came for the slanderers and i said nothing."
    4. Re: cygwin by phantomfive · · Score: 0

      Can you apt-get install to run any binary? I hate cygwin with a passion.

      btw, you can use cygwin's package manager which has taken care of all that for a long time.

      --
      "First they came for the slanderers and i said nothing."
    5. Re: cygwin by caseih · · Score: 1

      Yup you can apt-get install anything in the Ubuntu repositories. Including many things that won't yet run properly, since the Linux layer isn't complete.

      I've run Xming and many graphical apps in it, though, including Firefox, and many apps from the Mate Desktop (requires fiddling to fix dbus though).

      I've used Cygwin for many years and it's still useful like it always was, mainly for scripting and remote-access stuff (sshd). It's obviously not for you since you, but it's been invaluable for me. Of course it serves a different purpose than the linux emulation layer does for Windows.

    6. Re: cygwin by donaldm · · Score: 1

      Can you apt-get install to run any binary? I hate cygwin with a passion.

      These days I do virtual machines. Cygwin provides no value if you need to run modern apps bugfree. Same with Linux guys who do wine. If you need to run Windows than do it in a vm

      Why would you want to use a Debian base package maintainer in Cygwin it has it's own installer/maintainer?

      If I wish to use "apt-get" I would install a Debian-based distribution either native or in a virtual machine. If I wish to use "dnf" I would install a Redhat based distribution either native or in a virtual machine. It normally takes me about an hour to install a fully customized distribution.

      Personally, for home use I prefer the native approach for Linux and virtual machines for other distribution that I wish to test and/or evaluate, however for Windows I do use a vinegar based solution to clean them and they do come up sparkling clean. Of course, you may have to use a little elbow grease to get rid of bug splatters and bird droppings.

      --
      There ain't no such thing as proprietary standards only proprietary formats. Standards are by definition open.
    7. Re: cygwin by grumpy-cowboy · · Score: 1

      Did you try Babun (http://babun.github.io/)? It add a packaging system to Cygwin and provide a nicer shell.

      --
      Will $CURRENT_YEAR be the year of the Linux Desktop?
    8. Re: cygwin by lark046 · · Score: 1
    9. Re: cygwin by chmod+a+x+mojo · · Score: 1

      There are a few wrappers with nearly the same syntax as apt for cygwin, meaning you don't have to run the cygwin installer to do package installs / dependency calculations.

      Check out Sage sometime, makes the occasional install in a cygwin environment a breeze.

      --
      To err is human; effective mayhem requires the root password!
    10. Re: cygwin by klui · · Score: 1

      I may be in the minority but I have a Windows machine as my main workstation and I use cygwin as an interface to console applications for interfacing with UNIX machines. If I need to manage Windows boxes, I'll use Powershell, but if I want to check out things or remotely script simple stuff on UNIX machines I like using cygwin.

      Therefore I tend to install apps like ssh and tmux. Occassionally I would issue a wget command here and there, or a Q&D Python script. I don't run X applications--I have Linux VMs in those situations. Having a VM just to dabble on Linux is wasteful in my environment. My issue with BashOnWindows is it's a separate install for every user who enables it on a machine. It's a simpler approach from a management perspective as there's no privileged access of any sort since every user who installs it has root access. But I prefer one installation, which cygwin allows. I run as a regular user and use the administrative account for management purposes only and cygwin also allows me to separate management duties.

    11. Re: cygwin by phantomfive · · Score: 1

      I've used Cygwin for many years and it's still useful like it always was, mainly for scripting and remote-access stuff (sshd).

      Forgot about that one. SSH under cygwin is so much nicer, that I've installed Cygwin just for that before.

      --
      "First they came for the slanderers and i said nothing."
    12. Re:cygwin by Anonymous Coward · · Score: 0

      Bzzzt. Wrong answer, but thanks for playing. The answer we were looking for is "it's better to run Windows in a virtual machine from Linux."

    13. Re:cygwin by shutdown+-p+now · · Score: 1

      It really isn't. Everything that Cygwin does, WSL does better.

    14. Re:cygwin by phantomfive · · Score: 1

      Does WSL let you interact with Windows binaries/filesystems yet?

      --
      "First they came for the slanderers and i said nothing."
    15. Re:cygwin by shutdown+-p+now · · Score: 1

      Interaction with filesystem has always been available out of the box - you get /mnt/c, /mnt/d etc.

      It works the other way around, too, since WSL filesystem is just an NTFS folder. However, because WSL uses some custom attributes to describe inode semantics, which Win32 knows nothing about, writing into WSL filesystem from Win32 is not advisable.

      Launching Windows executables from command line isn't supported out of the box. You're right, this is one use case where Cygwin is better for now. But there are several ways to make this work with a little effort - for example, you can ssh into Windows prompt, or use a Win32 server process and connect to it through a local socket. Here is the issue tracking this, and various solutions people have come up with so far.

    16. Re:cygwin by phantomfive · · Score: 1

      writing into WSL filesystem from Win32 is not advisable.......Launching Windows executables from command line isn't supported out of the box. You're right, this is one use case where Cygwin is better for now.

      Yeah, I'll keep using Cygwin.

      --
      "First they came for the slanderers and i said nothing."
    17. Re:cygwin by shutdown+-p+now · · Score: 1

      Looks like we've got major changes coming in this department soon:

      https://blogs.msdn.microsoft.c...

    18. Re:cygwin by phantomfive · · Score: 1

      GOOD!

      --
      "First they came for the slanderers and i said nothing."
  7. Linux Test Project on Windows 10 by Anonymous Coward · · Score: 0

    Version 701 of LTP on Windows 10 that contain 1904 tests:
    701 tests skipped because of the configuration (features not supported).
    374 tests return unexpected result.

    Try it yourself.

  8. Which software does not have bugs? by Anonymous Coward · · Score: 0

    That's a dumb heading: There's Bugs In The Windows 10 Implementation of Bash. where do you not find bugs?

    1. Re: Which software does not have bugs? by p91paul · · Score: 1

      It is even more stupid when you realize that there is no such thing as a windows bash implementation, since the bash binary is the ubuntu one.

  9. There are bugs by aglider · · Score: 1

    That are plural. And a bug which is singular. A bug in bash is singular, indeed.

    --
    Sent as ripples into the electromagnetic field. No single photon has been harmed in the process.
  10. It's new by wjcofkc · · Score: 2

    MS has stated that this is very new and very buggy but that they are working on it. It is not yet for public consumption. MS has been embracing Open source minus the extinguish part for some time now. Linux (okay so not the kernel but still) on Windows outside of a virtual machine is everything a lot of people have wanted but never thought would happen. Go watch some of the MS demo videos. As a Linux user since 1996, I can attest that there is absolutely nothing that will make the broader Linux crowd happy. Hence, most of the Linux crowd are not actual techies.

    --
    Brought to you by Carl's Junior.
    1. Re:It's new by whoever57 · · Score: 1

      MS has been embracing Open source and delayed the extinguish part for some time now.

      FTFY. The only thing that has changed is that MS doesn't currently see a way to do the extinguish part.

      --
      The real "Libtards" are the Libertarians!
    2. Re:It's new by LVSlushdat · · Score: 1

      heh With all of the Linux distros out there, the "extinguish" part of that equation is pretty much IMPOSSIBLE.. Oh sure, MS could buy Canonical/Ubuntu, but that sure isnt gonna "extinguish" Linux... hehe I'd love to see them *try*... Having left the MS ecosystem completely about 6 years ago, I laugh my ass off at the bullshit MS pulls on those who still use their products...

      --
      THANK YOU, Edward Snowden!! Americans owe you a debt of gratitude (whether they know it or not..)
  11. Is this article serious? by Anonymous Coward · · Score: 4, Informative

    I have no doubt that the integration between Windows and the Ubuntu environment is bad, particularly with regards to the permissions. The POSIX vs. Windows permissions models are most likely to interact badly. There isn't a lossless mapping between the two, so something is bound to be lost. That being said, this article is absolutely horrendous.

    Example:

    2. “sudo su” VS Windows

    This useful commands doesn’t work in the Shell and if you try it you will, at first receive a command line error, and second you have to restart your terminal because the command “cd” starts to work in a random way causing path problem.

    Well, no kidding. First off, anyone who uses ‘sudo su’ instead of ‘sudo -i’ or ‘sudo bash’ should cease writing technical articles. Then there is no justification for the expectation that both sudo and su will somehow work as expected. That's the very thing I'm not expecting to operate the way I'm used to, since it is not running on a Unix-like system.

    But the absolutely best part is that the text of the whole article is completely devoid of any useful information. The quote above has the details and the grammar of the guy who calls your technical support guy and tells “my server don't work,” and refuses to give you any more details until you accidentally discover they don't have an account at your company, they don't have a server but a Facebook page, and their internet connection is presently not working.

    As I would never used Ubuntu Bash for Windows, I would have been curious to see what permissions would ‘ls -l’ see after a chmod. That detail is somehow missing from the “article”, which is a series of complaints and vain praises like “grep works correctly”. Yay.

    1. Re: Is this article serious? by Anonymous Coward · · Score: 1

      yeah, it should be "sudo su -"
      without the extra dash, the environment's all wrong.

    2. Re:Is this article serious? by Kremmy · · Score: 1, Funny

      No. This article can't possibly be serious. This person does not understand what bash or sudo are enough to issue a sudo bash.

    3. Re: Is this article serious? by backslashdot · · Score: 2

      Chill out. Dude wrote a useful and informational article. Offer some constructive criticism but no need to sudo bash him by getting on his case.

    4. Re: Is this article serious? by fisted · · Score: 1

      I sometimes run 'sudo su - foo' because a) unlike with 'su - foo' I have to enter the root password rather than foo's password, and b) unlike 'sudo -i -u foo -g wheel' it's quicker to type.

      Then there is no justification for the expectation that both sudo and su will somehow work as expected.

      Yes, there is. sudo does its job, su does its job. Where the hell did you learn unix so that you think there was something wrong about combining the two?

    5. Re:Is this article serious? by Anonymous Coward · · Score: 0

      This is Windows, right? Just setuid root the bash executable and be done with it.

  12. Yes? by fuzzyfuzzyfungus · · Score: 2

    It doesn't seem like much of a surprise that starting a fight between POSIX and NT ACLs is going to end badly; but this 'review' fails pretty dramatically at answering the question of how much of a problem this is.

    If you can't, in practice, let the Linux side touch the Windows side, or vice versa, lest ugly and inscrutable things happen, then you might as well just run a VM. If you can actually do a variety of interesting things across systems, so long as you avoid a few edge cases, that is potentially more useful.

    1. Re:Yes? by truedfx · · Score: 1

      You don't have to reserve memory and disk space like you do for a VM, you don't have the boot time of a VM, you can install Ubuntu's packages and have most of them actually work, even ones that haven't been tested, even without recompilation like for Cygwin, and you can safely read and write the files on the Windows side that you have access to. It's useful.

    2. Re:Yes? by AmiMoJo · · Score: 1

      Also, the headline fails at English. "There is bugs"?

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    3. Re: Yes? by Billly+Gates · · Score: 1

      Is it production ready?

      Let's say I get apache to work. Excellent. Now I have some scripts from Bob my coworker uses and some custom XML APIs for PHP to get my web app up. Will they work? Probably not.

      Any i5 with 8 to 16 gigs of ram with an SSD can do a VM lightning fast. Specially a type 1 like Hyper-V or KVM/qemu. Most developers and even hipsters posses such specs easily and Hyper-V and virtual box are there and work.

      Use a VM or better yet an Amazon e3 vm to do your development work with no headaches

    4. Re:Yes? by Anonymous Coward · · Score: 1

      This was my thought too. POSIX permissions do NOT map 1:1 to NTFS permissions. NTFS permissions are amazingly detailed basically inherited from its NETWARE and VMS 'roots' that they set out to replace.

      There is some stuff that maps out but there are many use cases that just do not even exist in POSIX and the other way around. That it probably works as good as it does is probably just amazing by itself.

      For example a file can be 'owned' by any number of groups in windows. But in POSIX it belongs to one group. In NTFS I can do things like user 1 can change the permissions but not read the file but user 2 can not even look at the file (will not see it in the listing) but can modify the permissions. Totally contrived but possible to do. I am not totally sure you could actually pull that off in a posix sort of system.

      In many ways NTFS is more capable but much much much much more terrible in its user complexity.

      If you are 'careful' in how you lay out your users and how you do permissions it would work. Get outside of that though and all sorts of 'cool' things will happen.

    5. Re: Yes? by Mal-2 · · Score: 1

      Let's say I get apache to work.

      Nope, network applications are specifically Not Supported.

      --
      How is the Riemann zeta function like Trump rallies? Both have an endless number of trivial zeros.
    6. Re:Yes? by Billly+Gates · · Score: 1

      It doesn't seem like much of a surprise that starting a fight between POSIX and NT ACLs is going to end badly; but this 'review' fails pretty dramatically at answering the question of how much of a problem this is.

      If you can't, in practice, let the Linux side touch the Windows side, or vice versa, lest ugly and inscrutable things happen, then you might as well just run a VM. If you can actually do a variety of interesting things across systems, so long as you avoid a few edge cases, that is potentially more useful.

      Mod parent up.

      I was thinking something similiar and not having CHMOD change an attribute is a feature.

      NTFS and the NT kernel do not understand Unix ACLs and permissions. If you Chmod something you can break it as the NTFS.SYS driver will assume the data is corrupt.

      While I think the WSL is a fun hack it is not practical as both systems were never designed to work with each other. Modern Windows is more akin to VMS than to Unix even if they do share some same features the implementations are different

    7. Re: Yes? by Billly+Gates · · Score: 1

      I did an apt-get install Apache2 and it installed :-)

      Now I didn't check to see if it worked as a have separate VM's of turnkey Linux appliances for those. MS wanted to include this because they are worried of becoming irrelevant to young millennials who make web pages and mobile apps so things like Apache was one of the goals of making WSL in the first place.

    8. Re:Yes? by JanneM · · Score: 3, Funny

      I don't see the problem. "There is bugs. And here is elmer. And over there is daffy." Seems grammatically fine to me.

      --
      Trust the Computer. The Computer is your friend.
    9. Re: Yes? by deniable · · Score: 1

      It's not production ready and designed for clients only. There is no server support. It's mostly a help for devs that live on Windows but have to run Linux tool-chains.

    10. Re: Yes? by truedfx · · Score: 1

      Now I have some scripts from Bob my coworker uses and some custom XML APIs for PHP to get my web app up. Will they work? Probably not.

      The limitations are in unimplemented or incompletely implemented syscalls. If your interpreter runs, your custom scripts are likely to run as well.

    11. Re:Yes? by vtcodger · · Score: 1

      "For example a file can be 'owned' by any number of groups in windows. But in POSIX it belongs to one group. In NTFS I can do things like user 1 can change the permissions but not read the file but user 2 can not even look at the file (will not see it in the listing) but can modify the permissions. Totally contrived but possible to do. I am not totally sure you could actually pull that off in a posix sort of system."

      Well, yes, you probably could do that. But I've always wondered if the potential for the small subset of us who occasionally make mistakes creating truly baffling problems for the rest of you to solve, was worth the benefit.

      --
      You can't see ANYTHING from a car, You've got to get out of the goddamned contraption and walk...Edward Abbey
    12. Re: Yes? by Anonymous Coward · · Score: 0

      Translation between paradigms was never a problem with Interix/SFU. I prefer that to both Cygwin and the new Linux subsystem. It's too bad Microsoft killed it. (And I use MinGW for cross-development.)

    13. Re: Yes? by Anonymous Coward · · Score: 0

      Objects in Windows have both an owner (you) and group (your primary group, usually Domain Users in a domain environment), and other maps nicely to Everyone. That scheme has worked well for years in Interix.

    14. Re: Yes? by Anonymous Coward · · Score: 0

      It's mostly a help for devs that live on Windows but have to run Linux tool-chains.

      And for devs who are accustomed to unix tools but have to work on Windows for a reason or another.

      Grep alone improves my quality of life by a significant factor.

    15. Re: Yes? by Mal-2 · · Score: 1

      Oh it will install. But the network functionality that makes it worth running in the first place will be thoroughly broken.

      --
      How is the Riemann zeta function like Trump rallies? Both have an endless number of trivial zeros.
    16. Re: Yes? by Anonymous Coward · · Score: 0

      On the surface, it's a stupidly easy problem to solve, assuming the consequences are understood. chown can work as expected; all Windows kernel objects and NTFS file system objects have an owner and group. chmod can easily map to CREATOR_OWNER, CREATOR_GROUP, and Everyone for principals and GENERIC_READ, GENERIC_WRITE, and GENERIC_EXECUTE for masks. The GENERIC permissions are actually masks themselves, but Windows provides methods for mapping between generic and specific permissions with e.g. MapGenericMask() and appropriate structs.

  13. Re:Bugs? In Windows? by Anonymous Coward · · Score: 0

    Oh yes, it is so. That's what happens when GNU goes on a date with sleaze like Windows. It gets bugs.

  14. Bash window by Anonymous Coward · · Score: 0

    I can't figure out any way to select, copy and paste text in a bash window. Quite a limitation for a shell.

    1. Re:Bash window by Ash-Fox · · Score: 1

      I can't figure out any way to select, copy and paste text in a bash window.

      Select and click the selected text to copy.

      Right click to paste.

      --
      Change is certain; progress is not obligatory.
    2. Re:Bash window by Anonymous Coward · · Score: 0

      To select and copy text: Right click in title bar, select Edit in the menu, select Mark, select the text to be copied, hit enter or mouse button.

      python -c 'print "Hey, it works!"'
      Hey, it works!

    3. Re:Bash window by Ash-Fox · · Score: 1

      To select and copy text: Right click in title bar, select Edit in the menu, select Mark, select the text to be copied, hit enter or mouse button.

      The console window for the start menu item "Bash on Ubuntu on Windows" (terrible naming by the way) is already in quick edit mode, you don't need to right click the titlebar.

      --
      Change is certain; progress is not obligatory.
    4. Re:Bash window by donaldm · · Score: 1

      To select and copy text: Right click in title bar, select Edit in the menu, select Mark, select the text to be copied, hit enter or mouse button.

      The console window for the start menu item "Bash on Ubuntu on Windows" (terrible naming by the way) is already in quick edit mode, you don't need to right click the titlebar.

      I prefer "Bash on Windows" a not so terrible naming by the way. :-)

      --
      There ain't no such thing as proprietary standards only proprietary formats. Standards are by definition open.
    5. Re:Bash window by Guy+Harris · · Score: 1

      I can't figure out any way to select, copy and paste text in a bash window. Quite a limitation for a shell.

      ...by which you mean "quite a limitation for a terminal emulator window"; that's not the shell doing that, any more than it's doing select, copy, and paste in xterm or gnome-terminal or rxvt or Konsole or Terminal or....

      And, yes, if it's using the same terminal emulator code that a cmd.exe window does, select/copy/paste is a pain, especially to those used to either the "middle button pastes the current selection" model or the Shift+(Control-C,Control-X,Control-V) model, as are used in many UN*X terminal emulators (or the Mac Command+(C,X,V) model in Terminal).

    6. Re:Bash window by BronsCon · · Score: 1

      Right, but Microsoft wants you to bash on Ubuntu if you're a Windows user.

      --
      APK quotes people (including myself) without context and should not be trusted. Just thought you should know.
    7. Re: Bash window by Anonymous Coward · · Score: 0

      Or if you've been using Windows NT for 20+ years alongside real Unix environmensts, switching between the two is second nature. Besides, didn't Microsoft add Unix-style terminal select, copy, and paste to Windows 10?

  15. children are prettier than the parents! by Anonymous Coward · · Score: 0

    ReactOS, OS2, Xenix, anybody?

  16. Linux by Anonymous Coward · · Score: 0

    I would definitely appreciate a Linux subsystem if I were forced to use Windows. But I'm not. So I'll just stick with Linux and run Windows apps in my "Windows subsystem" (Wine) in the rare occurrence where I would need or want to run such apps.

    All in all, this is a good move and attempt by MS to regain some relevance. Unfortunately for them, it's been way too long since I've needed them.

  17. So... you are saying...! by Anonymous Coward · · Score: 0

    GNU just penetrated the Microsoft womb?

    I smell a dirty virgin hippy living in parents basement but trolling under bridge with open Google 5bucks wifi.

    1. Re: So... you are saying...! by Anonymous Coward · · Score: 0

      ahhem! first thought to mind is package on 1st update. Or was the previous suitor to Windows actually the DEC Alpha crew that used OpenVMS integration with Windows NT 4 (amirite?)?

    2. Re: So... you are saying...! by Anonymous Coward · · Score: 0

      let me straighten this out... i can run a patched non-Microsoft Alpha NT 4 on an accelerated qemu fpga arch with better shell-utils support than what Ubuntu has provided heavily crippleware today in DRM Windows now today?

      beam. me. up.

  18. The first 6 words sums it up... by Anonymous Coward · · Score: 0

    There's Bugs In The Windows 10

  19. It's a beta by Kethinov · · Score: 2

    There are bugs in a beta? What a shock!

    --
    You're right, I wouldn't steal a car. But if it were possible, I sure as hell would download one!
    1. Re:It's a beta by Anonymous Coward · · Score: 0

      No, Win 10 is pre-alpha! There fixed that for ya!

  20. Beta software has bugs. Film at 11 by PhunkySchtuff · · Score: 2

    The summary even states that Microsoft still officially consider it beta software. This is not even a v1.0 release.
    What we are seeing here however is that even a large ship such as Microsoft can turn very slowly. This would have been unthinkable even 5 years ago - just think what it will be like in another 5 years...

    1. Re:Beta software has bugs. Film at 11 by Anonymous Coward · · Score: 0

      In 5 years they will have killed it, as usual....

    2. Re:Beta software has bugs. Film at 11 by NormalVisual · · Score: 1

      It may not matter much in 5 years unless Microsoft starts listening to the criticisms regarding Windows 10.

      --
      Please stand clear of the doors, por favor mantenganse alejado de las puertas
    3. Re:Beta software has bugs. Film at 11 by phoenix_rizzen · · Score: 1

      What's old is new again. NT 3 shipped with a (supposedly fully) POSIX layer, along with an OS/2 layer, and a Win16 layer. I forget the proper name for them, but it was along the lines of personalities.

      Later versions incorporated bits of OpenBSD userland to support networked UNIX systems.

      Then it was all removed and retired somewhere in the Vista/7/8 era.

      And now it's being resurrected and tired as something completely new. : Shakes head:

      Young whippersnappers who don't know their history are bound to repeat it. ;)

    4. Re:Beta software has bugs. Film at 11 by phoenix_rizzen · · Score: 1

      D'oh. Touted as something new. Lol.

      I blame Google's keyboard on my phone.

    5. Re:Beta software has bugs. Film at 11 by PhunkySchtuff · · Score: 1

      You're thinking of Services for Unix (SFU) - that was part of it, and the other part was the POSIX-compliant API that Windows NT 3.1 was based on (and remember that NT 3.1 was really NT 1.0).

      Windows also incorporated code from BSD (as it was more freely licensed than Linux) - from memory most of the TCP/IP stack was based on BSD's stack. I don't think it came from OpenBSD though - more likely to have come from FreeBSD or one of the other distros.

      I think that the POSIX layer was more that it complied with the POSIX standards (for some low numbered version of POSIX) rather than it could run unmodified code targeting POSIX. Either way, the POSIX and OS/2 APIs were killed when NT became XP.

    6. Re: Beta software has bugs. Film at 11 by Anonymous Coward · · Score: 0

      It would have come from BSD. You know, the original. Or more likely, it was based on the implementation from TCP/IP Illustrated--just like every major implementation of TCP/IP in nearly every commcercial operating system. There was no BSD vs. Linux debate.

  21. emacs / fg by Arathon · · Score: 1

    I can't even get Emacs to suspend and then return to the foreground in WSL Bash/whatever. The terminal program inevitably seems to get confused, and things get borked.

    The convenience of apt-get is outweighed by general unpredictability that is even worse than Cygwin.

    Honestly, Windows 10 + WSL very nearly got me to buy a Windows laptop as my primary computer, but it just isn't there yet.

  22. Here's a better "review" by Anonymous Coward · · Score: 0

    It runs Docker natively.

    'nuff said.

  23. Does it bother anybody else? by Anonymous Coward · · Score: 0

    That we are referring to bash as the problem when its actually tools not bash that is he is complaining about?

  24. For the love of... by Anonymous Coward · · Score: 0

    "There are"

    "There's bugs" is something an illiterate baboon might write. /. editors should at least be able to handle proofing their god damned headlines.

  25. There's Bugs In The Windows 10 Bash by Gojira+Shipi-Taro · · Score: 1

    I've just shit myself with surprise.

    --
    "Oh my God. This is terrible. This is the end of my Presidency. I'm fucked."; ~ Donald J. Trump
  26. Windows permissions not compatible with Unix by Anonymous Coward · · Score: 0

    ... so of course ls -l won't give an accurate answer. It's like asking "Siri, how can I get to the South Pole without crossing water?" It's not a question that even has an accurate answer.

    We've known this since the days of PuTTY.

  27. The "bugs" aren't even in bash itself. by techno-vampire · · Score: 1

    I must say that I'm completely underwhelmed by the reviewer's knowledge of his subject because ignoring bash itself, only two of the commands listed (cd and the two redirection commands, > and >> ) are built into bash. The rest of them are separate programs that are called by bash. And, calling a package of Linux utilities by the name of the included shell program doesn't exactly increase his credibility.

    --
    Good, inexpensive web hosting
  28. There are bugs by Anonymous Coward · · Score: 0

    Unless Bugs Bunny is hidden in there, there _are_ bugs in the Windows 10 Bash.

  29. my review by Anonymous Coward · · Score: 0

    the biggest complaint I have with the WSL is the lack of full network capability ... you know, the one thing that would make it useful to a sys admin, power user, or developer. fix that and get back with me

  30. Linux subsystem by Anonymous Coward · · Score: 0

    For what it's worth, "Ubuntu Bash on Windows" is a bit of a misnomer - It's a Linux subsystem with all of the advantages and pitfalls. In particular /dev isn't very elaborate which causes problems with things such as above poster's emacs bg/fg experience, screen and similar things.

    You can, however, install (from source, or apt-get) GCC/build-essential and then compile useful things such as FFmpeg, X.264, X.265 and all (most) dependencies. You can build Apache from source with your SSL library of choice and use it.

    You have perl, python, awk, sed, m4 and other useful things by default, and you can package install most other things from the repositories (I installed yasm and nasm to build FFmpeg, X.264, X.265, GPAC and OpenSSL).

    It is a useful tool even in beta.

  31. Samba runs under "Bash on Windows"! by abartlet · · Score: 1

    While so many seem to see another chance to put the boot into Microsoft, others of us, who work in interoperability every day, are really quite excited by this tool. I was pleasantly surprised when Garming Sam, my colleague at Catalyst and fellow member of the Samba Team, wrote this article on how to run Samba under bash on Windows:

    https://www.samba.org/~garming...

    The fact that Microsoft is implementing the POSIX API, and even more, the Linux ABI, seriously is really cool, and shows that something seems to have changed in Redmond. I could never have imagined this when I started in Samba 15 years ago!

    1. Re: Samba runs under "Bash on Windows"! by Anonymous Coward · · Score: 0

      The posix api was added to windows nt 3.something in the mid 1990s.

  32. Whatever it is, it's out and not "Linux" by jbn-o · · Score: 2

    MS has stated that this is very new and very buggy but that they are working on it. It is not yet for public consumption.

    Apparently Microsoft released it to the public.

    MS has been embracing Open source minus the extinguish part for some time now.

    Time will tell.

    Linux (okay so not the kernel but still) on Windows outside of a virtual machine is everything a lot of people have wanted but never thought would happen.

    This tends to confirm the view that the GNU/Linux misnaming as "Linux" is really about denying credit where credit is due (particularly noteworthy amongst people who are sticklers for technical accuracy and in need of a clearer distinction for what one has). This project includes some parts of a system but without the Linux kernel and yet you're still giving that project credit. What Microsoft has released might be a GNU/kWindows (akin in naming to Debian GNU/kFreeBSD, meaning GNU running atop the kernel of some other system—Microsoft Windows or FreeBSD, respectively) but whatever it is, it is certainly not "Linux" and it contains no Linux kernel code. Also, Cygwin has delivered some variant of comparable functionality for years.

    1. Re:Whatever it is, it's out and not "Linux" by SEE · · Score: 1

      No, sorry, you misunderstand.

      Cygwin is GNU for Windows. It compiles and puts the GNU system on Windows.

      "Windows Subsystem for Linux" is not GNU for Windows. It is subsystem for executing compiled-for-Linux ELF binaries on Windows. It's a Linux subsytem/ABI on Windows much like Wine is a Windows subsystem/ABI on Linux. You can run GNU software compiled for Linux on it, because it implements the Linux system calls on Windows, but it is not a port of GNU software to the Windows kernel.

    2. Re:Whatever it is, it's out and not "Linux" by jbn-o · · Score: 1

      Thanks for the clarification. Are people meant to run other OSes but GNU atop Windows Subsystem for Linux? I've not heard of anyone doing this nor have I seen any announcement this was intended.

      So GNU doesn't come with this, but one runs ELF binaries (Ubuntu's 14.05 release, for instance) on Microsoft's Windows Subsystem for Linux to effectively get GNU. Since this ostensibly doesn't include the Linux kernel this wouldn't qualify as GNU/Linux either.

      Functionally, however, I don't see a great deal of difference between this and Cygwin as in both cases one ends up with a lot of the same programs running atop Microsoft Windows.

    3. Re:Whatever it is, it's out and not "Linux" by PCM2 · · Score: 1

      Functionally, however, I don't see a great deal of difference between this and Cygwin as in both cases one ends up with a lot of the same programs running atop Microsoft Windows.

      For some value of "functionally," perhaps not -- at least not for now. But in future, maybe, if you wanted to test against some Linux software and you needed to be sure you're using the actual binary that ships with an actual, commercial distro, you could potentially do that with Windows Subsystem for Linux (but you could never do it with Cygwin).

      --
      Breakfast served all day!
  33. Windows Ubuntu is NOT a replacement for Cygwin. by mmell · · Score: 1
    The Ubuntu environment provided is not merely a POSIX-layer, it is a native environment capable of running Linux ELF binaries. This is not done by providing compatibility libraries but by actually providing quasi-kernel layer functionality in a (memory-resident?) environment. Each approach offers strengths and weaknesses.

    .

    The Cygwin layer has a long track record of success in providing a POSIX layer with some notable exceptions. There no native software management layer (forcing reliance upon the downloaded installer for software management). Further, while it is possible to build and install software locally from source, the process to do so is at best far from bulletproof - I personally was never able to get ClusterSSH running correctly under Cywin under multiple versions of Windows. However, it does provide a fairly robust software selection "out of the box" and does receive regular patches and updates. Being implemented as a set of API calls and libraries it tends to live within and get along more-or-less well with the underlying MS-Windows system.

    They Bash on Ubuntu on Windows stack provides a binary-ready environment pre-loaded with a somewhat modified version of Ubuntu (GNU, but not technically Linux IMHO). Software management is performed using APT, and with very few exceptions software runs identically to the Linux counterpart. The entire environment appears to be created as an abstraction layer in memory on demand, although once running the subsystem does not spawn separate processes as more shells are created. Note that the environment is destroyed when the last user shell is logged out. This is permissible because there is no (significant) boot time associated with the environment - it is created and destroyed instantly without user intervention of any kind. This arrangement neatly precludes the likelihood that system services will be run in an environment which the MS-Windows system cannot control, but does lead to some coexistence issues in regards to filesystem metadata - specifically security-related metadata. The two systems (MS-Windows and Linux) are fundamentally incompatible by design at that level and so implementation/execution of GNU Linux binaries will turn up some quirks caused by this basic incompatibility. Incidentally, I've only been using the Ubuntu subsystem for a month now, and while I've installed and tested Xming and I've been able to install ClusterSSH with one command, I can't get the thing to work correctly in this environment yet either.

  34. Are you serious? by Kremmy · · Score: 1

    I can't bring myself to read the article because in the summary this guy is confusing 'ls' with 'bash'. Can we get someone who actually knows what they're talking about to write about it?

  35. There is no reason to try to do real things in it by drinkypoo · · Score: 2

    When you can simply install actual proper Linux in a free VM like VMware Player or Virtualbox, there's really no reason to mess around with this stuff unless you're actually using it specifically for what Microsoft suggests you should use it for. Cygwin is better for just providing a Unixlike environment on Windows if that's what you want, and a VM is still better for compatibility if that's what you need.

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  36. Don't review what you don't understand at all... by ndykman · · Score: 1

    Seriously. The author seems to have no idea what the Windows Subsystem for Linux is nor how it works. There are separate file systems for a reason. The things the author tries are exactly the things Microsoft make it very clear will be very problematic at best.

    The POSIX model and the Windows model of permissions are completely different. Instead of trying to map between the two (something Cygwin does variably well, sometimes really badly), they provide a file system with the semantics needed. Finally, there is no Microsoft version of Bash. It's Bash, compiled for the Linux kernel (like most packages) that is being run as is by the subsystem. The subsystem has bugs, this is known, this is beta software and it is software that even Microsoft is smart enough to know that they need as many people trying it to find bugs as needed.

    And it does fill a very specific need and more importantly, it's further building out the newer subsystem parts of NT, which might come in handy for other things down the road.

  37. Umm by Anonymous Coward · · Score: 0

    'The Windows 10 implementation of bash' is just bash. It's the same binary as on Linux. The bugs are in the Windows Linux subsystem, not bash.

  38. A solution desperately looking for a problem by Opportunist · · Score: 1

    Quite frankly, everyone I know wants to move AWAY from Windows 10 and TOWARDS Linux, with their only problem being that certain Windows programs don't run nicely on Linux, and that certain hardware only has Windows support.

    --
    We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
  39. Scandinvaian by Buchenskjoll · · Score: 1

    One Scandinavian developer has even tried running X on Bash on Ubuntu on Windows,
    There is no such thing as a Scandinavian developer. He is either Swedish, Norwegian or Danish (in this case Norwegian). You can refer to Scandinavian developers in plural, such as in "Scandinavian developers are lazier than Mediterranean developers", but no single developer is Scandinavian.

    --
    -- Make America hate again!
    1. Re:Scandinvaian by Anonymous Coward · · Score: 0

      Plus that makes it sound a major challenge.

      sudo apt-get install vim-gtk
      DISPLAY=localhost:0 gvim test.txt

      Well... that worked.
      (Assuming you have an xserver running on your windows machine)

    2. Re:Scandinvaian by fred6666 · · Score: 1

      He can be Scandinavian, and European as well. And a westerner. And a lot of other things, as well as being a Norwegian.
      I don't see what's wrong here.

    3. Re: Scandinvaian by dnebdal · · Score: 1

      As the actual guy that messed with X servers to take those screenshots (though the article was written up by the boyfriend), I'm fine with "Scandinavian". I'm Norwegian as well, but in the larger scheme of things I can live with either.

  40. I, for one, have been happy by Anonymous Coward · · Score: 0

    I started using WSL/Bash a couple of months back as a means to get around using a VM. Why not use a VM? I couldn't get cut-paste to work between the virtual and physical machine, and I didn't like all of the overhead in running a VM for pretty straightforward tasks (I spend a fair time on the laptop battery).

    After activating the shell I quickly ran into the disk-permissions issue that this 'article' describes. You can move files in and out of the Bash environment using Windows Explorer, but if you modify/move a file via the Windows Desktop route (open it in Notepad++, edit it, save it, or simply copy it into ~/ via Windows Explorer) then that file is unreadable, even invisible in some cases, from within the Bash environment. Copying a file in/out via the Bash CLI is just fine, however. If you want to modify/use a file inside the Bash environment, you have to copy/edit it from inside that environnment. If you look in Process Explorer, you'll see that the bash process is not a peer process to the desktop, thus I'm pretty sure this is a Windows permissions issue.

    I have some use cases that make this shell indispensable in my current workflow:

      - I need SSH to hop around the corporate network, and we use RSA keys for access.
      - We have a CLI-driven database, and the native Windows copy-paste makes it a lot easier to grab what I need.
      - Our GIT system has as Python-based front end designed for Linux developers; it installs seamlessly in WSL/Bash and works natively there.
      - With a Windows X-server, I can direct to localhost:0 and display a variety of X-based tools such as gitk and meld.

    Could I do all of this with Cygwin? Could I have ported some of this to a Powershell environment? Could I have made the VM work better for me? Perhaps, but I just liked having the Bash shell handy, unobtrusive, and running natively, and all of the things I need to do to get my job done work really well. I still have a couple of limitations, but they're edgy enough for me to stick with WSL/Bash.

    As a beta product, I'm very happy with what it does for me so far, and I look forward to further improvements.

    1. Re:I, for one, have been happy by Anonymous Coward · · Score: 0

      I started using WSL/Bash a couple of months back as a means to get around using a VM. Why not use a VM? I couldn't get cut-paste to work between the virtual and physical machine, and I didn't like all of the overhead in running a VM for pretty straightforward tasks (I spend a fair time on the laptop battery).

      After activating the shell I quickly ran into the disk-permissions issue that this 'article' describes. You can move files in and out of the Bash environment using Windows Explorer, but if you modify/move a file via the Windows Desktop route (open it in Notepad++, edit it, save it, or simply copy it into ~/ via Windows Explorer) then that file is unreadable, even invisible in some cases, from within the Bash environment. Copying a file in/out via the Bash CLI is just fine, however. If you want to modify/use a file inside the Bash environment, you have to copy/edit it from inside that environnment. If you look in Process Explorer, you'll see that the bash process is not a peer process to the desktop, thus I'm pretty sure this is a Windows permissions issue.

      I have some use cases that make this shell indispensable in my current workflow:

        - I need SSH to hop around the corporate network, and we use RSA keys for access.

        - We have a CLI-driven database, and the native Windows copy-paste makes it a lot easier to grab what I need.

        - Our GIT system has as Python-based front end designed for Linux developers; it installs seamlessly in WSL/Bash and works natively there.

        - With a Windows X-server, I can direct to localhost:0 and display a variety of X-based tools such as gitk and meld.

      Could I do all of this with Cygwin? Could I have ported some of this to a Powershell environment? Could I have made the VM work better for me? Perhaps, but I just liked having the Bash shell handy, unobtrusive, and running natively, and all of the things I need to do to get my job done work really well. I still have a couple of limitations, but they're edgy enough for me to stick with WSL/Bash.

      As a beta product, I'm very happy with what it does for me so far, and I look forward to further improvements.

      Have you bothered to fucking try? I honestly don't think you have, because if you did you would be familiar with the multitude of databases supported by cygwin, the python support, the git support, the SSH + RSA key support, and the X support.

      Have you noticed the shit support for VPN with those beta windows versions?

  41. There is bugs? by Anonymous Coward · · Score: 0

    There ARE bugs...

  42. X on Bash on Ubuntu on Windows by Anonymous Coward · · Score: 0

    X on Bash on Ubuntu on Windows

    A clear lack of understanding. The X in Question is Xming, something that has existed for years before Ubuntu on Windows was a thing. It's a native Windows executable (using the Cygwin library, but could just as well use VcXsrv, X-Win32 or Exceed), just like if you were to use Putty with X forwarding to remotely access Linux GUI applications.

    Heck, I was using X-Win32 to remotely access the GUI of an Ultrix machine back in 1996.

  43. How is this a "Pro"? by macs4all · · Score: 1

    "Pros: You can also manage and manipulate other files inside your entire Hard Disk, even those outside of your Linux home directory."

    I see a whole new round of Windows/Linux cross-exploits coming...

  44. Good start, but no cigar by IlyaUsvyatsky · · Score: 1

    I blogged about this feature some half a year ago. Since then, Microsoft (or Canonical, or both) made some improvements. One fundamental issue is still there though - and causing all sorts of trouble, from broken 'screen' to not working 'ping'. The issue is too familiar to those who ever tried to support NFS and CIFS simultaneously in the same file system. Long story short, Microsoft has never figured out the meaning of mode bits in POSIX inode, POSIX systems have not done a good enough job of figuring out Windows permissions model. There were attempts to marry the two - from Samba to Likewise (RIP) to some proprietary implementations by Sun Microsystems, EMC, Nexenta and others. It would be nice if Microsoft and Canonical finally set this straight, but the chances are slim.

  45. My review by fred6666 · · Score: 1

    Pro:
    -run off the shelf Ubuntu cloud image, not a custom made OS, with real Linux binaries and can be updated with apt-get
    -several advantages over a VM:
    -no need for a separate partition/file
    -no need to allocate RAM (and require less RAM in general)
    -no messing with network configuration (although this limits some functionality)
    -no boot time

    Cons:
    -file access seems slow
    -fakeroot doesn't work (fakeroot-tcp does and can be used as an alternative)
    -you need to launch it with administrative privileges in order to ping anything
    -very limited /dev (no hard drive, no serial port)
    -no loopback filesystem mount possible, no Linux filesystems support
    -during a large compilation, I got some failures with "write errors" which do not happen under my VM. My SVN local db was also corrupted.
    -you can edit a file from Windows but the Linux simulator won't get notified the file changed. You can still read the good content but the modification date is wrong.
    -no GUI application, no servers (as there is no init scripts)

  46. argv[0] not passed correctly by scsirob · · Score: 1

    So I write command line software. If a user messes up the command line, I display a Usage message. This uses argv[0], which is basically 'the executable name'.

    When I run Windows bash, the pwd command shows '/c/test'. When I run test.exe I'd expect argv[0] to be '/c/test/test.exe'. It isn't, it is the Windows native 'C:\TEST\TEST.EXE'.

    --
    To Terminate, or not to Terminate, that's the question - SCSIROB
  47. Re:There's Bugs In The Windows 10 Bash by The-Ixian · · Score: 1

    Well... if you would have made a break for the bathroom instead of making a post on the Internet... I am thinking that things might have worked out better for you.

    --
    My eyes reflect the stars and a smile lights up my face.
  48. Year of Linux on the Desktop... By Microsoft? by scorp1us · · Score: 1

    Who would have expected Microsoft to be one to finally achieve Linux on the Desktop?

    --
    Slashdot's rate-of-post filter: Preventing you from posting too many great ideas at once.
    1. Re:Year of Linux on the Desktop... By Microsoft? by JustNiz · · Score: 1

      ... except they clearly haven't.

  49. Yeah, this is news. by Anonymous Coward · · Score: 0

    A bug in MS software? Yeah, this is news.

  50. Of course there are by Anonymous Coward · · Score: 0

    In other news, boobs are fun.

  51. Just really devious marketing? by JustNiz · · Score: 1

    ...so in short its not trustable.
    This whole "putting Linux under Windows and making sure it sucks" thing seems like Microsoft's actual purpose was to come up with a clever way to make inexperienced people think Linux must be significantly worse than Windows,

  52. Pico or Nano? by MayeulC · · Score: 1

    Does it really come with Pico, or is it plain old GNU Nano ?