Page 2 of 2

Re: We can use bash in our scripts now in Win10

Posted: 19 Oct 2016 14:57
by jfl
Why would they not account for this in the version of BASH they are using on Windows.

Because Microsoft just provides the Linux-compatible kernel. Everything else is just plain unmodified Ubuntu applications, including bash.
This is the beauty of it: You can install any Ubuntu package, and be sure that any updated package will work.

Re: We can use bash in our scripts now in Win10

Posted: 19 Oct 2016 15:01
by Squashman
jfl wrote:
Why would they not account for this in the version of BASH they are using on Windows.

Because Microsoft just provides the Linux-compatible kernel. Everything else is just plain unmodified Ubuntu applications, including bash.
This is the beauty of it: You can install any Ubuntu package, and be sure that any updated package will work.

So the Linux subsystem is more then just having BASH on your computer? You can run any linux program within it?

I installed the update a few weeks ago because I wanted to use it. I used to be a Unix admin 10 years ago. But when I installed the Windows Anniversary update it broke Quick Books so I had to roll back until my wife decides to update Quick Books to the latest version.

Re: We can use bash in our scripts now in Win10

Posted: 20 Oct 2016 01:28
by jfl
Squashman wrote:You can run any linux program within it?

Any text-mode program. GUI programs are not yet supported, and I don't know if they ever will.
By default, they install just the bare minimum set of shell tools that Posix requires.
Then you can use the apt-get package manager to get the rest from Ubuntu repositories. This opens up huge possibilities.
For example I started by installing gcc, make, etc. Apt-get has a predefined target that groups all common development tools:

Code: Select all

apt-get install build-essential

And I now have a fully functional Linux build tool chain within Windows 10. No more need for VMs or Cygwin.

Re: We can use bash in our scripts now in Win10

Posted: 20 Oct 2016 11:55
by foxidrive
Squashman wrote:Windows Anniversary update it broke Quick Books so I had to roll back until my wife decides to update Quick Books to the latest version.


It might be cheaper to get a new wife.
...Erm, ahhh, the devil made me type that. ;)

I'm kidding Squashman and your wife is so crook so I wouldn't be so callous. But what about getting a new PC for Dad?

Or a 2nd hand jobbie with Windows 10?

Re: We can use bash in our scripts now in Win10

Posted: 20 Oct 2016 12:05
by Squashman
foxidrive wrote:
Squashman wrote:But what about getting a new PC for Dad?

Work supplies me with a laptop which has Windows 7. So I really do not need another computer. Doubt we will upgrade to Windows 10 anytime soon. We didn't start using Windows 7 until like 2012.

Re: We can use bash in our scripts now in Win10

Posted: 21 Oct 2016 05:12
by foxidrive
Work supplies me with a laptop which has Windows 7.

Ahh.

Doubt we will upgrade to Windows 10 anytime soon.

That's how I feel about it.