From mboxrd@z Thu Jan 1 00:00:00 1970 From: "briangpowell ." Subject: Re: Powershell scripting with org-babel Date: Tue, 11 Feb 2020 05:36:51 -0500 Message-ID: References: <1247841977.1214337.1581352684665@ichabod.co-bxl> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b17ff8059e4a6fb0" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:60219) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1Suf-0006BZ-C3 for emacs-orgmode@gnu.org; Tue, 11 Feb 2020 05:37:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1Sud-0003Pj-JC for emacs-orgmode@gnu.org; Tue, 11 Feb 2020 05:37:05 -0500 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:39477) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j1Sud-0003O7-BG for emacs-orgmode@gnu.org; Tue, 11 Feb 2020 05:37:03 -0500 Received: by mail-wm1-x341.google.com with SMTP id c84so2840601wme.4 for ; Tue, 11 Feb 2020 02:37:03 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: gmauer@gmail.com Cc: MS Window , emacs-orgmode --000000000000b17ff8059e4a6fb0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Damn straight it's "mature and appropriate" MicroSoft has been found guilty of MANY crimes that set the software industry back many years through serial acquisitions & monopolistic practices Corporate immaturity, unfair and illegal practices have driven the rise of the Free Software Foundation, Emacs & OrgMode It's why were all here using OrgMode and supporting it--its ALL about freedom and free and open source software MicroSoft PowerShell is a participation in immaturity & stupidity It's fashioned off of shells that really work rather than stripped down nonsense that Gates stole and called his own--i.e. "quick and dirty DOS"--which still works a little bit, on worthless machines enslaved by MicroSoft products Grow up: MicroSoft products are evil and enslaving Now that said, I've used PowerShell; but, only when I had to--I strongly suggest you do the same On Mon, Feb 10, 2020 at 10:33 PM George Mauer wrote: > > Micro$loth WindBlows is a computer virus > > Well that's mature and appropriate. > > I recently did an implementation of `ob-pwsh` for supporting powershell > core (it assumes there=E2=80=99s a pwsh command available on PATH though = thats > configurable with `org-babel-command:pws`). Here=E2=80=99s the link > https://github.com/togakangaroo/ob-pwsh. Instructions for installing are > in the README > > It works ok and even supports variables but was a 3 hour hack job, plenty > of features missing. I hadn=E2=80=99t even announced it on this list befo= re. The > code is pretty small though - under 60 loc if you want to contribute to i= t, > I=E2=80=99m game. > > I also saw this a while ago but haven=E2=80=99t really dug in > https://old.reddit.com/r/emacs/comments/dkz0n1/babel_with_powershell/?st= =3Dk5jqc8es&sh=3Db464c181 > > Oh, and powershell is awesome. It=E2=80=99s 2020, we *should* have a runt= ime in > our terminal (eshell somewhat does this and is pretty good because of it)= . > One of the things that would be really nice to do some day would be some > sort of conversion between powershell and lisp structures so that we coul= d > pass structured data as hashes and lists between languages - not just > strings. > > On Mon, Feb 10, 2020 at 7:59 PM briangpowell . > wrote: > >> Micro$loth WindBlows is a computer virus >> >> But if you must use Windows, suggest you use Cygwin and BASH and/or >> EShell {the Emacs Shell}--you can do much more than PowerSh3ll >> >> And Emacs & OrgMode work very nicely on Cygwin >> >> On Mon, Feb 10, 2020 at 11:58 AM MS Window >> wrote: >> >>> Hello, >>> >>> can you help me ? I want to use org-babel for Powershell scripting. I >>> found this code chunk on the internet for customizing org-babel for >>> Powershell on github: >>> >>> https://gist.github.com/cbilson/ae0d90d163be4d769f8a15ddb58292bc >>> >>> There is no explanation there I should put the configuration. The >>> org-babel documentation is too brief for me as beginner to understand. >>> >>> Yours sincerely >>> >>> Claus Keller >>> >>> >>> >>> --000000000000b17ff8059e4a6fb0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Damn straight it's "mature and appropriate"<= div>
MicroSoft has been found guilty of MANY crimes that set = the software industry back many years through serial acquisitions & mon= opolistic practices

Corporate immaturity, unfair a= nd illegal practices have driven the rise of the Free Software Foundation, = Emacs & OrgMode

It's why were all here usi= ng OrgMode and supporting it--its ALL about freedom and free and open sourc= e software

MicroSoft PowerShell is a participation= in immaturity & stupidity

It's fashioned = off of shells that really work rather than stripped down nonsense that Gate= s stole and called his own--i.e. "quick and dirty DOS"--which sti= ll works a little bit, on worthless machines enslaved by MicroSoft products=

Grow up: MicroSoft products are evil and enslavin= g

Now that said, I've used PowerShell; but, on= ly when I had to--I strongly suggest you do the same

On Mon, Feb 10, 2= 020 at 10:33 PM George Mauer <gmauer= @gmail.com> wrote:
>=C2=A0Micro$loth WindBlows is a computer virus

Well that's mature and appropriate.

I recently did an implementation of `ob-pwsh` for s= upporting powershell core (it assumes there=E2=80=99s a pwsh command availa= ble on PATH though thats configurable with `org-babel-command:pws`). Here=E2=80=99s the link=C2=A0https://github.com/togakangaroo/ob-pwsh. I= nstructions for installing are in the README

It wo= rks ok and even supports variables but was a 3 hour hack job, plenty of fea= tures missing. I hadn=E2=80=99t even announced it on this list before. The = code is pretty small though - under 60 loc if you want to contribute to it,= I=E2=80=99m game.

I also saw this a while ago but= haven=E2=80=99t really dug in=C2=A0https://old.reddit.com/r/emacs/comments/dkz0n1/babel_with= _powershell/?st=3Dk5jqc8es&sh=3Db464c181

O= h, and powershell is awesome. It=E2=80=99s 2020, we should have a ru= ntime in our terminal (eshell somewhat does this and is pretty good because= of it). One of the things that would be really nice to do some day would b= e some sort of conversion between powershell and lisp structures so that we= could pass structured data as hashes and lists between languages - not jus= t strings.

On Mon, Feb 10, 2020 at 7:59 PM briangpow= ell . <bri= angpowellms@gmail.com> wrote:
Micro$loth WindBlows is a computer vi= rus

But if you must use Windows, suggest you use Cygwin = and BASH and/or EShell {the Emacs Shell}--you can do much more than PowerSh= 3ll

And Emacs & OrgMode work very nicely on Cy= gwin

On Mon, Feb 10, 2020 at 11:58 AM MS Window <ms.window@mailfence.com> = wrote:
Hello,
can you help me ? I want to use org-babel for Powershell scripting. I found= this code chunk on the internet for customizing org-babel for Powershell o= n github:

https://gist.github.com/cbilson/ae0d= 90d163be4d769f8a15ddb58292bc

There is no explanation there I should put the configuration. The org-babel= documentation is too brief for me as beginner to understand.

Yours sincerely

Claus Keller



--000000000000b17ff8059e4a6fb0--