New Windows 10 Preview For PCs With Bash, Cross-Device Cortana Released
An anonymous reader writes: Microsoft has released a new Windows 10 preview for PCs. The preview, dubbed build 14316, comes with a range of features including support for Bash, which Microsoft had announced at its developer conference Build last week. Users interested in it can enable the feature by turning on Developer Mode (detailed instructions here), searching for "Windows Features," choosing "Turn Windows features on or off," and enable Windows Subsystem for Linux (Beta). To get Bash installed, open Command Prompt and type in "bash" (without the quotes.) Other features included in the new build include low battery notification, find my phone (ring my phone), and the ability to share map directions across devices. Additionally, the company has also released a new universal Skype app.
Only took 15 years to get tcp/ip into windows.
Makes sense it took another 15 to get it a reasonable shell.
Let me get this straight: to enable Developer Mode, you need to go into settings (okay), update (wait, what?), security (why?), for developers (could be named a bit better IMHO).
No wonder I always feel lost when I use Microsoft products. They can't even make a proper navigation tree.
Shouldn't that be Linux Subsystem for Windows?
It seems like you are ssh to a server should I save the password for you?
I have to disagree. It takes some time and effort to get comfortable with Bash, but once you do it's really powerful and logical. I used to script most things in Perl or Python but found that for a lot of uses, Bash was more than adequate once I put in the effort.
Just like C, Perl, Python, or anything, Bash scripts can be indeed a nightmare if poorly coded. But properly coded Bash scripts are easy to work with.
I've developed plenty of sophisticated scripts in Bash. Just because you haven't learned Bash doesn't mean it isn't useful, it just means you lack experience and knowledge.
For some of us, having a common scripting language on Windows and *nix, one which has decades worth of scripts behind, is more valuable than OOP concepts. For chrissakes, even on a fairly well-speced system, the amount of time Powershell takes to start is astonishing, whereas I have Linux installs on crappy Cyrix processors with 256mb of RAM where Bash pops up right away.
The world's burning. Moped Jesus spotted on I50. Details at 11.
It runs them. Not recompiled binaries, but actual ELF binaries.
This makes me wonder what Windows could be say 10 years from now... Windows 10 BSD with GNU userland?
From what I read it actually does all that. You can 'apt-get install '. At least that what I understood from reading this. I think its kind of cool, like a "reverse WINE".
Just use Python. It'll let you accomplish the same tasks, likely in a fraction of the time, and with a much better result. Plus your script will likely be more portable, too, even to Windows!
Sure, as long as you have the same version of Python installed, your script might be portable. I can't remember when was the last time I had to check $BASH_VERSION.
Bash is a relic from a pre-Python world. It's time to move away from bash.
How about using the right tool for each job?
Use Bash for simple tasks that involve running programs, piping their output, checking their exit code, etc.
Use Perl for text manipulation, regular expressions, complex data structures, complex logic, one-liners, etc.
Use Python for your code to be readable by an 8 year old.
Windows PowerShell Integrated Scripting Environment (ISE):
---> C:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe
Or you can launch PowerShell via the console:
---> C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
I've said many times, Linux can't 'beat' MS, because MS can always do MS Linux.
Actually it's apparently not a port. You could copy a regular ELF binary from your Linux system and it would run just fine. The kernel is actually implementing the Linux syscalls, more or less. IIUC it's a peer to Windows in the NT kernel.
This isn't the first time people have done this. The old Services for Unix implemented a lot of the primitives like fork() but still required recompilation. People bolted on an ELF loader and dynamic linker to that and were able to get stuff working.
I have developed a truly marvelous proof of this comment, which this signature is too narrow to contain.
If you're counting from 1995, when Cygwin was first released, it took Microsoft only 4 years to get native Unix shells on Windows (and that's counting from when Microsoft made them available itself, not from when a third party offered them on top of the NT kernel's POSIX subsystem). https://en.wikipedia.org/wiki/...
For many years, Windows (NT family only) had a POSIX-compatible subsystem built into it. Like the Win32 subsystem, this "Subsystem for Unix Applications" (SUA) took POSIX system calls and translated them into NT native syscalls (the NT kernel does not recognize either Win32 or POSIX syscalls, but rather implements its own calls that are a superset of both in functionality; Win32's CreateProcess cannot properly implement POSIX's fork, but NtCreateProcess supports both). SUA also provided a Unix-like filesystem (with case sensitivity, Unix file permissions including stuff like setuid/setgid, working /proc and /dev, and so on).
Microsoft provided a bare-bones set of tools and libraries for SUA, called Interix. As of Windows 7 (Interix 6.7), this included two Unix shells, C shell and Korn shell, which both suck compared to Bash but were sufficient to bootstrap the system. Interix also included a working GCC build toolchain. From this minimal start, you could install additional packages (NetBSD, Debian, and I believe Gentoo all supported building and managing their packages for Interix, plus there was an Interix-specific package repository that Microsoft funded). There were thousands of such packages available, from Bash to OpenSSH (client and server) to Apache httpd to Git to... you get the idea. X11 client libraries, plus a Win32 X11 server (typically Xming), meant you could even run graphical software.
Microsoft deprecated SUA and stopped all development on Interix with Win8.0; in Win8.1 and Win10 (until now?) the subsystem itself is unavailable. I'm really curious to see if they built this new "Subsystem for Linux" on top of the old POSIX subsystem, or did something else (and if the latter... what?)
There's no place I could be, since I've found Serenity...