6 ms·
I want native bash commands in Windows shell. I know powershell supports some commands, but and actual Linux shell to interface with the rest of windows will be
by AtHeartEngineer 7y ago
I want native bash commands in Windows shell. I know powershell supports some commands, but and actual Linux shell to interface with the rest of windows will be awesome. WSL is getting there, sucks I've gotta install Python and node/npm twice.
- tenebrisalietum 7y agothere's cygwin, I think it's still active.
- TheChaplain 7y agoIt is, I use it daily and it's very good.
- pepoluan 7y agoI second (third?) that.
- echeese 7y agoThe interop is pretty good, I don't have cowsay on Windows and I don't have node in wsl, but this still works: C:\Users\Ryan>wsl cowsay hello _______ < hello > ------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || C:\Users\Ryan>wsl ryan@DESKTOP:/mnt/c/Users/Ryan$ notepad.exe test.js ryan@DESKTOP:/mnt/c/Users/Ryan$ node.exe test.js hello, world!
- YeGoblynQueenne 7y agoDo you need to do something special for "wsl" to send a command to wsl? I only get an error on my win 10 machine (that "wsl" is not a known command/let).
- echeese 7y agoDo you have WSL installed? It's not part of Windows by default (at least not since I checked)
- YeGoblynQueenne 7y agoYes, it's enabled- I can use bash and all.
- echeese 7y agoNo idea - sorry!
- YeGoblynQueenne 7y agoNo worries -thanks for replying :)
- underwater 7y agoI wish that PowerShell had a way of breaking down the learning curve. It understands some basic Bash commands like `ls` and `cd`, but I feel it would be good to use those as teachable moments, like tell me that `ls` is actually running `Get-Contents` or whatever.
- kuzimoto 7y agoI actually generally stay away from using aliases, since I like the verb-noun format and keeps it consistent with all the other commands. But if you are ever curious, you can use Get-Verb[1] which will tell you what is going on. [1] https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-alias?view=powershell-6 https://docs.microsoft.com/en-us/powershell/module/microsoft...
- kuzimoto 7y agoI wouldn't even really say that PowerShell supports any Unix commands, they are just aliases. It breaks down pretty quick if you were to try to use any parameters. They can still be useful, but just mostly while navigating in a command window.
- neop1x 7y agoit's funny how web developers are finally discovering UNIX, bash and free software now and how MS is surprised. Cmdline has always been unusable, powershell is better but people need a proper pty and Bash.