Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.comp.os.windows-10 > #53787
| From | Paul <nospam@needed.invalid> |
|---|---|
| Newsgroups | alt.comp.os.windows-10, alt.os.linux |
| Subject | Re: What the heck is Windows Subsystem for Linux |
| Date | 2017-10-16 06:44 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <os22ib$9h5$1@dont-email.me> (permalink) |
| References | <os177d$co5$1@news.mixmin.net> <os1etj$a47$1@dont-email.me> <87r2u31oun.fsf@LkoBDZeT.terraraq.uk> |
Cross-posted to 2 groups.
Richard Kettlewell wrote:
> Paul <nospam@needed.invalid> writes:
>> Blake Snyder wrote:
>>> What the heck is Windows Subsystem for Linux?
>>>
>>> Is it a baby linux inside of Windows?
>>> Just a Bash shell? Just Cygwin done better?
>>> What?
>>>
>>> This is all I know, but I didn't understand what a 'subsystem' is.
>>> <http://www.zdnet.com/article/windows-subsystem-for-linux-graduates-in-windows-10-fall-creators-update/>
>>>
>>> It seems to be just a shell ... but is that what it is?
>
> It is not just a shell.
> https://blogs.msdn.microsoft.com/wsl/2016/04/22/windows-subsystem-for-linux-overview/
> describes the technology.
>
>>> "With WSL, most Linux shell tools are at your command. These include: apt,
>>> ssh, find, grep, awk, sed, gpg, wget, tar, vim, emacs, diff, and patch. You
>>> can also run popular open-source programming languages such as python,
>>> perl, ruby, php, and gcc. In addition, WSL and Bash supports server
>>> programs such as the Apache web-server and Oracle's MySQL database
>>> management system. In other words, you get a capable Linux development
>>> environment running on Windows."
>> It's not quite as "deep" as Cygwin.
>
> It is deeper, in any meaningful interpretation of the term. It is a
> reimplementation of the Linux kernel ABI that runs as part of the
> Windows kernel (plus some other components); it literally runs the same
> executables, byte-for-byte, as a real Linux kernel.
>
> In contrast Cygwin consists entirely of userspace components including a
> library exposing a POSIX(ish) API. It cannot run native Linux
> executables, you must (at a minimum) recompile your code in order to run
> it under Cygwin.
>
Cygwin works with /dev/sda identifiers. I can run "disktype",
something that does raw accesses to what you point it to,
and it works.
I tried to access /dev/sda in Win10 Bash shell, and it's
not there. So utilities that want to work with that level
of disk access, won't work with that style of identifier.
And I don't know if the Windows namespace for that works
either (the Linux programs wouldn't know about that anyway).
And someone else mentioned some other Linux subsystem
that wasn't present either. If you're going there
expecting "everything Linux" to work, you have some
testing ahead of you.
*******
I've tried only a few Cygwin packages, and found enough
brokenness to suggest to anyone using it - expect testing.
The individual packages are only as good as the level
of care and attention provided by the porter.
On the Win10 Bash shell, the curation is much better.
It's just the architecture you have to look to (if
a diagram is available), to see and predict what should
work in such an environment. I don't expect to find quality
problems.
One problem I ran into on the very first invocation, was
in my Gawk example. When I use gnuwin32, the gawk.exe
program uses Windows line terminations so I don't
have to worry about it. The Gawk 4.x in Win10 Bash shell,
used Linux line termination, and I ended up adding a
two line Begin() clause to fix it. I guess that falls
in the "architecture" camp, as long as it's consistent
and will always be an issue for everything you do.
If different utilities had a different policy, then
that would be a mess to deal with.
Paul
Back to alt.comp.os.windows-10 | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
What the heck is Windows Subsystem for Linux Blake Snyder <blakdeblakesnyder@outlook.com> - 2017-10-16 02:57 +0000
Re: What the heck is Windows Subsystem for Linux lifewoutmilk <lifewoutmilk@distraction.x10host.com> - 2017-10-16 04:16 +0000
Re: What the heck is Windows Subsystem for Linux "J.O. Aho" <user@example.net> - 2017-10-16 06:59 +0200
Re: What the heck is Windows Subsystem for Linux Paul <nospam@needed.invalid> - 2017-10-16 01:09 -0400
Re: What the heck is Windows Subsystem for Linux Richard Kettlewell <invalid@invalid.invalid> - 2017-10-16 09:25 +0100
Re: What the heck is Windows Subsystem for Linux Paul <nospam@needed.invalid> - 2017-10-16 06:44 -0400
Re: What the heck is Windows Subsystem for Linux Richard Kettlewell <invalid@invalid.invalid> - 2017-10-16 15:12 +0100
Re: What the heck is Windows Subsystem for Linux Jasen Betts <jasen@xnet.co.nz> - 2017-10-16 10:54 +0000
Re: What the heck is Windows Subsystem for Linux Paul <nospam@needed.invalid> - 2017-10-16 07:27 -0400
Re: What the heck is Windows Subsystem for Linux Andy Burns <usenet@andyburns.uk> - 2017-10-16 14:16 +0100
Re: What the heck is Windows Subsystem for Linux Peter Köhlmann <peter-koehlmann@t-online.de> - 2017-10-16 14:21 +0200
Re: What the heck is Windows Subsystem for Linux "Mayayana" <mayayana@invalid.nospam> - 2017-10-16 09:24 -0400
Re: What the heck is Windows Subsystem for Linux Paul <nospam@needed.invalid> - 2017-10-16 14:52 -0400
Re: What the heck is Windows Subsystem for Linux "Mayayana" <mayayana@invalid.nospam> - 2017-10-16 19:56 -0400
Re: What the heck is Windows Subsystem for Linux Eef Hartman <E.J.M.Hartman@gmail.com> - 2017-10-30 14:22 +0000
csiph-web