Bash scripts run in Powershell. We have hundreds of bash scripts for infrastructure build/deploy/etc. and they are cross-platform. On windows we execute them in Powershell. Powershell's been around for a decade and runs on XP and above (edit: and ships with Windows, I think Win7 and above).
...if you install Bash [1] so PowerShell can execute it. In much the same way that batch files can call Bash, or Windows Explorer can if you double click on it.
> A caveat to the accepted answer is that sh is not included in vanilla Powershell. I had to install Git, which optionally adds some UNIX tools to the PATH in Powershell, sh.exe being one of them.
> Note: sh.exe or another *nix shell must be associated with the .sh extension.
If you find yourself using Windows from time to time, you might try Cmder: http://gooseberrycreative.com/cmder/. It's currently my favorite Unix-like shell on Windows. I've used cygwin and Hamilton C Shell in the past, but Cmder offers, among other things, a console emulator (ConEmu, I gather) that is much better than the default Windows console emulator.
You're probably better off installing standalone MSYS with something like mingw-get-installer which also gives you a convenient GUI for installing other common GNU/Unix utilities (and a somewhat crappy command line package manager). It even gives you a half decent terminal (in the form of mintty).
I tend to do most of my windows scripting using bash cause it's just less effort that way. Still, it's not a first class citizen like on Linux, and Microsoft seems to be going down it's own path with powershell (which at best gives a nod to the existence of things like bash, but not a lot more).
I went off the fact that most people caring about some command line on Windows likely also installed Git on it. In that case it is like getting it for free.
I don't think that would be terribly useful, as a bunch of concepts important to Windows the BSD core utilities would have no idea about. Registry, NTFS, etc.
Honestly, I find 'nix users unwilling to learn PowerShell the exact same as Windows user unwilling to learn a 'nix shell and core utilities.
PowerShell doesn't have SED -- but it has pipeline replacement.
I'm worried they will inadvertently pollute their store with garbage from Google Play. Most people use just a handful of quality apps.
From my corner I hear a lot of grumbling from devs about Google's terrible Android SDK, poor documentation, buggy releases, flaky and buggy tools.
"“Our goal is to make Windows 10 the most attractive development platform ever,” Microsoft executive Terry Myerson told an audience"
I never felt that was Google's priority with Android. Its just that terrible.
Developers not strictly of the F/OSS mindset would probably try Windows development just for some new scenery, if their tooling was that great and they had more market share.
I'm an Android user and I don't feel that Google Play is in the bad shape that you're describing. Quite the contrary, I believe that it's the best app store right now. And I also own a Nokia Lumia, an iPhone and an iPad, so I could make lots of comparisons.
Android as a platform is also the best. Maybe I'm biased, Android being the first platform I tried my hand at - but that's also because Android's SDK is the only one available on Linux and that's what I was using back then. And that's a virtue.
> Developers not strictly of the F/OSS mindset would probably try Windows development...
Well, that's one thing that makes Android great - the availability of great open-source apps for it, like Firefox or VLC. That's one thing setting it apart from iOS. Microsoft copied iOS, but that was a terribly bad decision, because introducing a tightly controlled proprietary platform as a third choice is never going to fly in a market in which Android is number 1.
I can't find anything I don't already know the name of on Google Play due to all the me-too apps. They need to either fix discovery or cull the garbage.
I think the biggest issue is inertia. Most everyone I speak with knows that the toolset for developing on Windows is superior to that of Android (language, IDE, testing, etc), but it's no simple task to be Windows-centric, shell out the cash for licenses, and convince a lot of people to abandon the language and ecosystem they already know for a new one.
I beg to differ. Most of these "grumbling devs" must have never seen what poor documentation looks like if they think Android's SDK has issues with it. On the contrary, its very well documented in my opinion. The tools are solid too, you can't really complain about IntelliJ as an IDE basis and the build system is good too ever since they switched to Gradle.
Of course you could bitch about how they constantly release new APIs for everything, but so does every other platform.
A few months ago I bought a surface 3 pro for testing. For the first week or so I was quite impressed by the metro stuff. Looks nice, works well with touch.
I was very disappointed that there are no metro interfaces for browsing files or basic things like looking at a text file.
Its really disappointing to have to drop down into the old, messy, ugly windows.
MS grip on the desktop market needs to be weakened. So far they still enjoy barely disputed control over common manufacturers who enforce Windows tax and don't let users buy computers with other operating systems.
From the article: "Microsoft hopes to lure more people to use its new Windows 10 software on a variety of computers and gadgets by making it easy to use many of the same apps they’re already using on Apple or Android phones."
That's a problem. I don't want to run phone apps on my desktop machine. I might want to be able to sync some things with my phone, but I have bigger jobs to do on the desktop machine than on the phone. If I didn't, why would I have a desktop machine?
Microsoft tend to make a lot of bold claims, but they rarely follow through or in the same way they promised. We'll see how that bold plan actually fleshes out in reality.
Hmm I'm trying to think of the last claim I've heard Microsoft made that they didn't follow through on. They've been actually really great especially in the past few years. Care to elaborate?
Every time I sit down in front of Win8 I feel like my head is going to explode. Earlier this evening I was on the phone trying to walk a tech-challenged colleague through removing an existing account in 'Mail'. He had switched mail clients, and the new client would work once and then fail for hours, and then work once, etc. It hit me that Windows 'Mail' was trying to login with an old password, and must be causing his account to lock out. Of course he didn't know his current mail password either, so the best option was to just delete the account from Windows Mail.
It took several minutes just to explain how to get into 'Settings'. Then after finally selecting an account, he couldn't figure out that the right-hand panel with the settings actually scrolled. Then when he clicked 'Remove Account' and it gave a cryptic error about how the account couldn't be deleted, because it was his "Microsoft Login" account even though it looked like the work email account. Finally we found the right account and removed it. Almost 30 minutes of my life lost to something which should been about 5 clicks max.
I feel like literally everything about Win8 was designed as the complete opposite to how I would want my computer to actually function. First, the idea that Microsoft is sync'ing settings between machines in ways that is extremely difficult or impossible to turn off is worse than creepy, it feels like a back door. Then every time an app comes up as "Metro" styled or whatever, it seems incredibly wasteful, out-of-place and practically ridiculous looking. No, thank you, I don't want my 4K monitor taken over by a full screen of purple and a tiny bit of text at the top. Then there are things like 'Camera' app which when it fails simply says 'Camera cannot start' and give you absolutely nothing to do about it (all the while Skype video-conferencing is working perfectly).
It's like Microsoft thought, well most of our users don't even know how to use a computer, so lets make an operating system for them! I must have some sort of PTSD from it because I often end up loudly cursing Microsoft's existence any time I need to even approach a Win8 machine.
In short, if Microsoft is making a "case" for Windows 10 to anyone like me, it better look fuck all like Win8.
Yet I am convinced Microsoft still completely does not get it. My desktop is not my phone, and I don't want to run smartphone apps on my desktop. There are incredible opportunities for tying together the computing experience between desktops and phones, but unifying the user interface is just dead wrong. It's like the whole thing is just completely lost in translation. A unified experience does not mean a unified GUI! How can they get this so wrong even after 5 years of staring their failure in the face?
Every time I sit down in front of Win8 I feel like my head is going to explode.
I use Windows 8 at work. I power it on, dismiss the new 'start screen', and from that point on it's almost EXACTLY like every version of Windows that came before it.
Look: you don't like Metro apps? Then don't use them.
As it stands, your problems - and the problems described by every other person on HN who has had their good sense similarly assaulted by Windows 8 - are entirely self-inflicted.
You have a choice and you choose to stick with what brings you displeasure.
Yeah, it's funny. I use Win7 for work and Win8 on my home computers. I don't even really notice the difference anymore. 99% of the time I'm starting a program with something on the Taskbar or "Windows Key + 'chr'" or "Windows Key + 'visua'". And that never changes.
I mean, I get there are scenarios where some people get frustrated about some default behavior, but I run into something like that once or twice a year, and the rest is smooth sailing.
For now I just avoid it. I don't use a Win8 machine myself, so I have never had the cause to modify one back to Win7 behavior. But the Win8 machines I have had to use seem to push you back into Metro no matter how often you try to Win-D out of it, e.g. like the Network Settings example I got down-voted for below.
I don't use a Win8 machine myself, so I have never had the cause to modify one back to Win7 behavior.
You don't need to "modify it back to Win7 behavior." Dismiss the Windows 8 'start screen' then don't use Metro apps. Magic.
But the Win8 machines I have had to use seem to
push you back into Metro no matter how often you
try to Win-D out of it, e.g. like the Network
Settings example I got down-voted for below.
You're doing something to cause the behavior you don't like.
Were this any other platform, the advice on HN would be: 1. Figure out what you're doing to cause the behavior you don't like. 2. Stop doing it.
> You're doing something to cause the behavior you don't like
You mean, like clicking the Start button? Clicking the 'Start' button in Win8 brings up a metro-style screen which annoys me every time I see it. You can pin as many programs on the taskbar as possible, but if you want to run a one-off program, the only alternative is Win-R and knowing the name of the executable. Can you get back the standard Win7 start menu? Possibly, but like I said, I don't use Win8 enough to bother trying to modify it back to Win7.
Microsoft is following the popular trends. The "other major desktop OS", Mac OS X, is similarly bad. What used to be the default desktop for most linux distros, Gnome, is also going this way.
Lots of people love it. They say "computers shouldn't bother me with details, they should just work". They say "if I should be doing something, like backing up or managing settings, the computer should do it automatically". Even technical people say this, and I think it's a fair and realistic way to portray their opinion.
The only place you can hide from this trend is one of the full-manual linux distros (or bsd). I've used them for many years, I've worked on linux kernel drivers, I do dev-ops stuff, so of course I would hate this "make it easier" trend. But I feel that I am qualified to say that trying so hard to make things easy and automatic, while also keeping up with absurdly fast changes in GUI fashion, makes things less reliable and less fixable (and thus damn frustrating).
Things are more and more "designed", more and more "streamlined" and "optimized for user experience", and people seem to get the impression that the results are good, but in practice common people still don't really know how to even use the interface. I can figure out pretty quickly what you can click and what you can scroll, but the common user can't! and I don't prefer these slick new information-starved whitespace-fat interfaces. I guess they're just for demos, and their own designers.
I guess I got lucky with that one, right? I mean, who would think to go into the account settings and scroll to the bottom of a side-panel with no scroll bars to find a button called 'Remove Account'? Even the videos I was finding on YouTube were showing a way to get a 'Delete' button to show up in the Account list somehow. I mean, imagine, I have to search on YouTube for a video describing how to delete a mail account on Win8. That's just pathetic.
I've used very little Win8, because it literally triggers an unhealthy physiological response in me for some reason. But the few things I've tried have been mind-numbingly painful. The whole 'Microsoft Account' thing after initial install of Win8.1 was very user hostile. I think I had to click Cancel like 7 times before it finally just let me login to my own machine.
In Win7 I start all programs by clicks Start, typing a few letters, and clicking Enter. That sometimes works in Win8, but often you type the name of a program and the auto-complete suggestions are just complete utter Rubbish?!
I installed MegaRAID testing a new SAS setup, and I'm trying to see; "Show me the start folder with all the MegaRAID apps". In Win7, you type 'Mega' and boom you see them all. In Win8, I had to hunt for them in the ridiculous tile view because it just wouldn't show in the auto-complete. (probably it hadn't "Indexed" them yet or something).
Then there was the experience with the Camera app. I was trying to record some video, and it would tell me absolutely nothing about why it wasn't working. Apps from the "Store" likewise failed (btw, their store was incredibly frustrating to search for something like 'Video recording' if you sorted by anything but Relevance then results were completely crap). I quick Googled for some Win7 freeware and of course it worked perfectly.
Then there's the massive cognitive dissonance between Metro and Windows. I'm just constantly hammering Windows-D to try to get back to sanity. The Metro apps hide all scroll and title panes, so just minimizing the window is an act of waiting for UI elements to appear. I mean, the OS is called fucking "Windows" and they eliminated the entire concept of a window. It's just mind blowing.
Like, try to get into IP settings to change your IP address. I think each successive version of Windows has to add at least 2 clicks to the sequence required to view or change your IP. It's easier to go to command prompt now. I never understood what that weird Network panel thing is supposed to even be showing me? Why do I need half my screen to list a single network adapter? And they give it so much space but include absolutely no useful details, just a big block of some randomly chosen solid color and absolutely no affordances for what to click next? Again it just seems they are building an OS for people who don't know what a mouse is. I'm sure they would remove the entire Control Panel if they thought they could get away with it.
In Win7 I start all programs by clicks Start, typing a few letters, and clicking Enter. That sometimes works in Win8, but often you type the name of a program and the auto-complete suggestions are just complete utter Rubbish?!
I lot of the auto-complete is learned behavior. Use it enough and it figures out what you generally want to use given the keys you enter. Win7 is probably working better because you use it more.
Then there's the massive cognitive dissonance between Metro and Windows. I'm just constantly hammering Windows-D to try to get back to sanity. The Metro apps hide all scroll and title panes, so just minimizing the window is an act of waiting for UI elements to appear. I mean, the OS is called fucking "Windows" and they eliminated the entire concept of a window. It's just mind blowing.
Then don't use Metro apps? Ignore the Windows Store and Win8 functions the same as Win7.
I agree Spartan would have been the cooler name, but Edge is a pretty cool name too. The browser field is full of weird and wacky names (consider Mozilla Firefox and Google Chrome; that's four weird words right there) but we get used to them extremely quickly.