7 ms·
This is cool, but I hope the new Linux Subsystem in Windows 10 will propagate enough that everything can be written in bash
by legacy2013 10y ago
This is cool, but I hope the new Linux Subsystem in Windows 10 will propagate enough that everything can be written in bash
- tk32 10y agoi will never understand why people fetishize that awful language.
- dahart 10y agoI think it's your incorrect assumption that bash's popularity is due to it being a "fetish" for anyone. There aren't alternatives that are both better and more available / cross-platform / standard. I agree its a crappy language, but remember, it's a shell, not a language. It serves a different purpose than being good for pure code, so saying something like "<your favorite scripting language here> is better than bash" doesn't hold a whole lot of water. It is way better than batch though.
- AnimalMuppet 10y ago"<your favorite scripting language here> is better than bash at the kind of tasks that bash is used for" would be a pretty substantial claim, though. (Unfortunately, it's almost never the claim that people are making. "X is better than bash at creating UIs/database lookups/OO/web programming"? Yeah, of course it is. Water's wet, too.)
- consto 10y agoIt's significantly better than batch
- criddell 10y agoWell sure, but these days PowerShell is what Windows people use for anything non-trivial.
- nopreserveroot 10y agoIt is significantly better than PowerShell.
- criddell 10y agoand significantly worse too.
- deleted 10y ago[deleted]
- consto 10y agoReally? I though PowerShell was designed primarily to replace cmd. Surely Windows people use actual programming languages for the majority of tasks with PowerShell/cmd for smaller scripting tasks.
- wvenable 10y agoPowerShell took everything that was great about .NET and combined it with everything that was terrible about Bash. So we have, yet again, a difficult to understand language for shell scripting.
- colejohnson66 10y agoWhy is it bad? I've been able to write some pretty great PS scripts to automate tasks. It's easier than firing up Visual Studio and writing a C# program I'd need to recompile if I ever want to change it.
- smoothdeveloper 10y agoHave you considered F#? Works well for scripting.
- wvenable 10y agoIt's very powerful but the syntax is step back 20 years: If ($Number -gt 0) That's just one example. There is a lot of really confusing stuff in powershell that's entirely unnecessary. There were going for some kind of Bash-shell familiarity which, oddly enough, most Windows developers don't even have.
- badloginagain 10y agoJokes on you, they're going to end up baking bash commands into PowerShell.