Slashdot Mirror


Windows 10 Upgrade Bug Disabled Cntrl-C In Bash (infoworld.com)

An anonymous reader quotes InfoWorld: A massive set of changes to the Windows Subsystem for Linux (WSL) was rolled into Windows Insider build 15002... If this is any hint, Microsoft's goal is nothing short of making it a credible alternative to other Linux distributions... Some of the fixes also implement functionality that wasn't available before to Linux apps in WSL, such as support for kernel memory overcommit and previously omitted network stack options. Other changes enhance integration between WSL and the rest of Windows...

[O]ne major issue in build 15002 is that Ctrl-C in a Bash session no longer works. Microsoft provided an uncommon level of detail for how this bug crept in, saying it had to do with synchronization between the Windows and Bash development teams. The next Insider build should have a fix. But for people doing serious work with Linux command-line apps, not having Ctrl-C is a little like driving a car when only the front brakes work.

52 of 277 comments (clear)

  1. Ha-Ha! by Anonymous Coward · · Score: 5, Insightful

    But for people doing serious work with Linux command-line apps

    ...we use a Linux operating system.

    1. Re:Ha-Ha! by __aaclcg7560 · · Score: 4, Funny

      Or Cygwin.

    2. Re:Ha-Ha! by SirSlud · · Score: 4, Interesting

      You know, some of us use windows since it's quite client facing. This might blow your mind. Anything either side can do to bridge the gap of best of both worlds is a good thing.

      --
      "Old man yells at systemd"
    3. Re:Ha-Ha! by Princeofcups · · Score: 4, Insightful

      You know, some of us use windows since it's quite client facing. This might blow your mind. Anything either side can do to bridge the gap of best of both worlds is a good thing.

      You somehow missed 30 years of embrace, extend, and extinguish.

      --
      The only thing worse than a Democrat is a Republican.
    4. Re:Ha-Ha! by JoeMerchant · · Score: 2, Insightful

      Programs trapping Ctrl-C as an exception are exceptionally lazy - there should be a more "front end" way to quit. Originally Ctrl-C was just to kill, not to gracefully shut-down.

      I take exception to the summary's bad automotive analogy. I'd say that removing Ctrl-C functionality is like removing the standard brake pedal, leaving the driver to read the manual to discover where alternate brake controls might be found - naturally different locations in different programs.

    5. Re:Ha-Ha! by ooloorie · · Score: 2

      Programs trapping Ctrl-C as an exception are exceptionally lazy - there should be a more "front end" way to quit. Originally Ctrl-C was just to kill, not to gracefully shut-down.

      Control-C is the usual way of stopping a Linux command line program. Users expect it to leave the system in a reasonable state and programs to clean up after themselves.

    6. Re:Ha-Ha! by jaa101 · · Score: 4, Informative

      Programs trapping Ctrl-C as an exception are exceptionally lazy - there should be a more "front end" way to quit. Originally Ctrl-C was just to kill, not to gracefully shut-down.

      In a purely TTY environment there's usually only CTRL-C and CTRL-\ to generate signals (SIGINT and SIGQUIT) that processes can catch. (CTRL-Z generates SIGSTOP which can't be caught.) What's so lazy about using one of those? Of the two, CTRL-C is clearly the most appropriate if supported by the environment. What do you mean by "front end" here? If you mean some non-TTY-based mechanism then, sorry, that's not always an option.

    7. Re:Ha-Ha! by TheRaven64 · · Score: 2

      Windows excels in building user facing apps with good UI and good experiences

      An odd quote about an OS that manages to get the buttons in the wrong order for basically every dialog box. Quick quiz: In your web browser's tool bar, does the left or right arrow mean forwards? In any random Windows dialog box, is the left or right button the proceed forwards one?

      --
      I am TheRaven on Soylent News
    8. Re:Ha-Ha! by JoeMerchant · · Score: 2

      Thanks for the only non-AC criticism here...

      Ctrl-C goes back beyond Linux and SIGINT - it has been a system level "stop now" key combo since the 1980s, maybe even longer - and not just on *nix systems, it even applied to BASIC and other languages on the 6502 and 8088 based home PCs.

    9. Re:Ha-Ha! by silentcoder · · Score: 2

      If Microsoft wanted to do something actually useful in that regard the, instead of WSL, we'd see them contributing major patches to WINE.

      --
      Unicode killed the ASCII-art *
    10. Re:Ha-Ha! by sjames · · Score: 2

      That goes all the way back to the telegraph where you could interrupt the sender by opening the circuit.

      RS-232 maintains it in the form of the break signal which just pulls the line low for not less than one symbol's time (ass opposed to ctrl-c that just transmits character value 3).

      Cut the wire is as good as any I suppose.

  2. Ctrl by pz · · Score: 2

    Who spells it with an N?

    --

    Put my fist through my alarm clock with its ding-dong death inside my ear. - The Blackjacks.
    1. Re:Ctrl by ls671 · · Score: 2

      Just google it to get an idea...

      hint:
      Showing results for ctrl-C
      Search instead for cntrl-C

      --
      Everything I write is lies, read between the lines.
    2. Re:Ctrl by ls671 · · Score: 3, Funny

      And you hate the letter "o" I assume?

      --
      Everything I write is lies, read between the lines.
    3. Re:Ctrl by JoeMerchant · · Score: 3, Funny

      The windows side team, the linux side spells it Ctrl-C, thus their .net json bridge had a disconnect issue.

    4. Re:Ctrl by hcs_$reboot · · Score: 5, Funny

      People who decided to use \ as path separator?

      --
      Slashdot, fix the reply notifications... You won't get away with it...
    5. Re:Ctrl by silentcoder · · Score: 2

      Which, for the record, is the way it's spelled on keyboards... makes sense when spelling out a keyboard-command to use the same labels as is commonly found on said keyboards.
      Nobody writes "Press Alternate and F1" we say "Alt-F1" because the keys are labelled "Alt".

      --
      Unicode killed the ASCII-art *
    6. Re:Ctrl by The-Ixian · · Score: 2

      People who decided to use \ as path separator?

      Oh no, you really stirred the hornet's nest with that one!

      It's full on character war now!

      --
      My eyes reflect the stars and a smile lights up my face.
  3. Re: In other news by loftarasa · · Score: 3, Insightful

    vi mode for Excel would be a dream come true...

  4. Not an alternative to Linux, an alternative to OSX by orin · · Score: 5, Interesting

    Computers running OSX have substantial developer mindshare. Microsoft wants those developers using Windows PCs. Putting WSL/Bash on Windows so that it's a credible alternative to the 'nix tools available on OSX gives those developers one less reason to avoid using a Windows based OS.

  5. like driving a car when only the front brakes work by turkeydance · · Score: 2

    done that.

  6. Breaking News - beta software has bugs by Quarters · · Score: 5, Insightful

    It isn't an "upgrade bug" as the upgrade isn't slated for release for months.The build in question has only been released to the fast ring for Insider testing. In other words, it's only been given to those on the extreme bleeding edgeof Windows testing.Is Slashdot going to start posting articles for every minor issue in Chrome canary releases also?

  7. Subject to the whims and bugs of Microsoft.... by QuietLagoon · · Score: 3, Insightful
    Really ... who on this planet is looking forward to running some manner of Linux emulation that is subject to the whims and bugs of Microsoft's current design and development process? Any of Microsoft's Windows Updates could cripple the very environment you would depend upon.

    .
    Yeah, that sounds like a success story.

  8. Re:so they give up by lucm · · Score: 5, Insightful

    As their revenue dwindles let this be a lesson.

    Microsoft revenue has grown in a more or less linear fashion since the 90s. Doesn't stop idiots from announcing their imminent doom for over 25 years.

    --
    lucm, indeed.
  9. Re:Microsoft playing games us usual by TWX · · Score: 5, Funny

    They literally broke break.

    --
    Do not look into laser with remaining eye.
  10. So, they do not even get signal handling right by gweihir · · Score: 2, Interesting

    How are these people thinking they are qualified to write an OS-like subsystem, let alone a full OS?

    --
    Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    1. Re:So, they do not even get signal handling right by Billly+Gates · · Score: 2, Insightful

      Keep in mind this is in a Windows 10 beta relase which is based on a very new version of Ubuntu. THe stable one uses Ubuntu 14.04 LTS.

      I am not defending MS as I had to downgrade to WIndows 8.1 as my main OS due to bugs. In my opinion if you need to use both us a VM. This is 2017 and most any newish PC in the last couple of years can run each others OS as a VM for any IT professional.

    2. Re:So, they do not even get signal handling right by GerryGilmore · · Score: 3, Insightful

      Did Ctrl-C break between Ubuntu releases? No? Then WTF is your point?

  11. Re:Not an alternative to Linux, an alternative to by MightyMartian · · Score: 2

    Pretty good shape for what? I can download Ubuntu and throw it on a box for, well, the cost of the machine (and I've got several lying around). If I want to move data around I've got everything from Samba to ssh copying, and even NFS. What is it exactly that running Ubuntu under Windows grants me? As it stands, at the moment, I'd be pretty buggered with this update. Microsoft's QA on their own products has gone down the crapper, why would I want the same level of incompetence responsible for my BASH session?

    --
    The world's burning. Moped Jesus spotted on I50. Details at 11.
  12. Re:like driving a car when only the front brakes w by Tau+Neutrino · · Score: 2

    Really not a big deal. With weight transfer, the harder you brake, the larger share of the stopping is done by the front wheels anyway.

    I disabled the rear brake on my race bike. As did many other racers. Sure, the needs of street vehicles is different, but in most circumstances, front brakes only is adequate.

    --
    Lemmings are silly; dinosaurs are extinct.
  13. Re:In other news by krray · · Score: 2

    you will take vi from my cold dead hands

  14. Amazing since market share dropped from 98% to 38% by raymorris · · Score: 4, Insightful

    Which is amazing considering that a few years ago, 98% of people used their flagship product, Windows, while now only 38% of people do (Netcraft, 2016). They've done a really good job pivoting to maintain revenue while customers have dumped their traditional products en masse.

  15. Re:Developers give great advice. by TWX · · Score: 2

    *woosh*

    The point isn't the addressing method, it's having to navigate through dialogue boxes in order to enter it.

    --
    Do not look into laser with remaining eye.
  16. Re:Developers give great advice. by Zaelath · · Score: 2

    You can just invoke putty from the command line if you want...

    c:\>putty ipaddress port

  17. Dear Microsoft by MrKaos · · Score: 3, Interesting

    stty intr

    will remap the interrupt key to any thing you want. Try using DEL, as it was mapped on some Unix systems. It was only changed to ctrl-C to make it easier for DOS users moving to Linux.

    --
    My ism, it's full of beliefs.
  18. Re:Amazing since market share dropped from 98% to by Stormwatch · · Score: 2

    I think it's a joke, "Netcraft confirms it" is a meme around here. But the number is right, Windows has been surpassed by Android. StatCounter confirms it.

  19. Re:No more Linux Clients by ChunderDownunder · · Score: 2

    It's a value-add for those 'forced' to use Windows. Your options otherwise are maintain a Linux box (in a VM, dual booting or a dedicated machine) use ported applications which mightn't receive the love their Linux-native cousins do or use cygwin.

    What Windows lacks is a decent package manager (and I've tried Chocolatey). So the alternative is that every major vendor, from Google to Mozilla to Adobe runs there own crapware background updater service. Synaptic and apt-get would be a huge improvement, so if they can make GTK+/Qt applications run seamlessly, I'd gladly use the Ubuntu versions.

  20. It's the console stupid! by paulpach · · Score: 4, Interesting

    WSL is better than cygwin. It is a lot faster and it has apt-get instead of that dreadful install wizard that cygwin has.

    However, the console in windows is stuck in the 80's. It is the same DOS command prompt that we saw in windows 3.1. The terminal emulators in linux or macOS support multiple tabs, text selection that reaches the end of the line instead of a rectangular shape, split panes, your default directory is your home directory.

    Now someone will raise their hand and say "PowerShell ISE". It looks promising, but at this point it is unusable because console programs cannot read input in PowerShell ISE

    Until they have a console from this century, WSL is worth using only when you don't have linux or macOS available.

  21. Re:wow, people can get win 10 updated? by lucm · · Score: 3, Interesting

    Check this piece on ars technica:

    http://arstechnica.com/securit...

    Most available satellite-based Internet remains almost as limited now as when it was introduced two decades ago. It's slow and provides users only with a unidirectional download link. But there's something about the connections that made them highly attractive to Turla members: most satellite links are unencrypted and can be intercepted by anyone within a radius of more than 600 miles. That means a connection between someone located in, say, a remote location in Africa and a satellite-based ISP can be monitored or even hijacked by an attacker.

    --
    lucm, indeed.
  22. Re:like driving a car when only the front brakes w by 93+Escort+Wagon · · Score: 2

    Actually, if you were forced to pick... you're better off if your front brakes are functional. Remember, rolling friction is greater than sliding friction.

    --
    #DeleteChrome
  23. Best of luck by raymorris · · Score: 3, Informative

    > I think I'm gonna increase my MSFT position just in case.

    Best of luck with that. I've always done mutual funds instead of trying to pick. I often discussed this with my best friend, who would always pick stocks. One day, in early 2008, he told me that rather than picking one company he had made a can't-lose buy: both Intel and AMD. Being the only two processor manufacturers with any significant market share, one of them would have to do well! Of course that was just about the time Android was released and most processor sales started to be ARM devices, neither Intel nor AMD.

  24. Re:Not an alternative to Linux, an alternative to by IcyWolfy · · Score: 4, Informative

    I know for myself, and many others at the companies I have worked for -- THere are a signifcant number of people who use Macbooks, but run Windows on them. As I type here, It's a macbook Pro Running Windows 10.

    The hardware runs Windows significantly better than any natively developed Windows notebook. Probably becasue drivers can be written to only a single known configuration and that can be optimized.

    WHen running multiple VMs, and IDEs on Windows on Macbook Pro hardware -- it simply outclasses the same setup on alternatives.

    But either way, at our office, more than half (500+ users) all run Windows as their primary OS on the Macbooks. Most workers don't know that they can even boot into Mac OSX (minimally sized partition, as even the Engineers don't even boot into OSX)

    Once I installed Windows 7 on a Macbook Pro -- I never went back to Windows-first hardware.
    1. Buy MacBook
    2. Install Windows.
    3. Have a kick ass windows box for development and gaming.-

  25. Re:Not an alternative to Linux, an alternative to by Ambassador+Kosh · · Score: 3, Interesting

    Microsoft has been working quite hard to make windows a good development platform for linux. Between WSL and the changes to Visual Studio it has gotten pretty easy to do writing, compiling and debugging of linux software from windows.

    For me this is really important since linux has never run well on this laptop. I have optimus which means I have a dedicated gpu + integrated gpu and with windows it seamlessly switches between them and everything works. Under linux there are commands to make one or the other run but it is not remotely seamless and it is really buggy. I have also run into problems with ubuntu and fedora where an update will sometimes break x entirely where the default output gets set to the device that is not activated and then having to deal with debugging that.

    I also write C++ simulation software and I have found no better IDE that VisualStudio so far. With eclipse under linux once I upgraded to an SSD I sometimes had issues to compile multiple times to compile without errors about files not being found. If I compiled from the command line that never happened. Debugging is MUCH worse in eclipse vs visual studio. The worse thing though is profiling. I have no idea what happened to it on linux since I have done linux development for almost 20 years now and we used to have some of the best profilers out there but no it seems most of them just do a horrible job. Trying to profile a program that uses shared libraries in linux mostly ends up with no, poor or inconsistent results even when the program behavior is highly consistent. I ended up trying the proprietary vtune from intel and that worked great on linux and windows.

    In the end it is easier to do development on windows where all the desktop type stuff works and get the software running completely correctly and debugged and then deploy it to linux servers, clusters, supercomputers etc for actual running. At this point I pretty much use windows for desktop work and linux for all the server work and the WSL system has made life much simpler.

    --
    Computer modeling for biotech drug manufacturing is HARD! :)
  26. Re:No more Linux Clients by t0y · · Score: 2

    As far as I can tell, this Ubuntu on Windows is completely useless for me because (unlike Cygwin) the environment does not have access to the full filesystem of the Windows boxes.

    It does although there are some gotchas with regards to permissions (same with cygwin). And the next version will let wsl interact with windows binaries.

  27. Re:Developers give great advice. by Opportunist · · Score: 2

    I'll start caring what MS wants when they start caring what I want.

    --
    We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
  28. Re:Yes, StatCounter, not Netcraft by Stormwatch · · Score: 3, Insightful

    The tale of Windows Phone is one of absolute hubris. Let me tell you the ways.

    Microsoft thought, just by planting a guy to make Nokia move to WP, they could steal Nokia's exceedingly loyal users. But those people were not blindly loyal to the brand, they were invested in the roadmap: Symbian now, MeeGo soon. Without these, might as well go a completely different way. Especially when many were angry for the loss of MeeGo.

    Ditto about carriers and app developers, who were counting on that roadmap. They had put a lot of money and work in preparing for MeeGo. The move to WP cost them a lot, so they were enraged and went with anyone but Microsoft.

    The Skype acquisition didn't help either. Calls and messages for free? Carriers saw it as an existential threat. Microsoft got promoted from "those people are a headache" to "those sons of bitches are actively trying to murder us".

    And WP may be decent now, but it was originally rushed. When the first Lumias came out, it was an incomplete mess without a possible upgrade. This meant lots of returned phones, a headache to retailers. So they also hated WP and discreetly guided potential buyers to a less headache-inducing alternative.

    Microsoft was so sure they could buy success, they ended up stepping on everyone's toes.

  29. Re:Not an alternative to Linux, an alternative to by AvitarX · · Score: 2

    Is an insider release not the equivalent of an alpha or beta release?

    I've used plenty of Linux alpha and beta distros with some pretty big bugs.

    --
    Wow, sent an e-mail as suggested when clicking on "use classic" banner, and got a fast response that addressed my msg
  30. Re:Not an alternative to Linux, an alternative to by drinkypoo · · Score: 4, Insightful

    WHen running multiple VMs, and IDEs on Windows on Macbook Pro hardware -- it simply outclasses the same setup on alternatives.

    [citation needed]

    Apples are made out of the same chipsets as everyone else's PCs. There's no reason why they would be better at anything, especially since they are usually made with last year's hardware.

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  31. Re:Not an alternative to Linux, an alternative to by garethjrowlands · · Score: 2

    Breaking break is a known bug in a beta release. It's not in any production release.

    Lots of things don't run on Cygwin that do run on Ubuntu/WSL. And Ubuntu/WSL is more like Ubuntu than Cygwin is.

  32. Re:No more Linux Clients by serviscope_minor · · Score: 4, Funny

    For myself, I can't see any reason to use this Ubuntu-on-Windows.

    It's for those who want the beginner friendliness of command-line Unix with the stability and security of Windows.

    --
    SJW n. One who posts facts.
  33. Re: Developers give great advice. by TWX · · Score: 2

    Sure, that works great when you don't have more than two thousand devices to hop in and out of.

    --
    Do not look into laser with remaining eye.
  34. Re: Not an alternative to Linux, an alternative to by silentcoder · · Score: 2

    In other words, those who work in a business end up behaving like the business they are in. For years we've been told that capitalism creates improvement through competition and rewards those who win the competition. Are you, then, surprized that this is not only true of businesses relative to each other but of individuals within a business towards one another ?
    Getting promoted means being perceived as better than the next guy - this doesn't *just* reward working to the best of your ability, it also greatly rewards successfully undermining your colleagues (as long as you can do so without being caught out).

    Businesses try very hard to counter this with team-building exercises and the like - trying to turn their workers into an obedient hivemind and strip from every one of them their self-interest in a desperate attempt to protect themselves from this internal form of the tragedy of the commons. The severity of the threat is clearly discernible from the way they persist in this, at great cost, despite overwhelming evidence that these things achieve absolutely nothing (and the fact that this evidence has been available for decades and only gotten stronger and more corroborated over time).
    It's much like the cubicle/open-plan thing. There is overwhelming proof that open-plan office designs reduce worker productivity. It is simply the worst possible way to lay out an office - so why does every company persist in it ? Because trying to break down the individualism of staff is worth more to them than the lost productivity. You need to feel like a rat in a maze, to turn you into a cog in the machine - a less productive cog is better than a worker that questions the corporate dogma.

    --
    Unicode killed the ASCII-art *