Hi Danek!
On Mi, 03 Feb 2016, Danek Duvall wrote:
> On Thu, Feb 04, 2016 at 12:00:00AM +0100, Bram Moolenaar wrote:
>
> > > That's what
> > >
> > > let pid = system("./test_channel.py& echo $!")
> > > ...
> > > call system("kill " . pid)
> > >
> > > was all about -- the script would emit the pid of the job running in the
> > > shell, the vimscript would capture that, and then pass it to a kill
> > > command. That's about as precise as we can get, I think.
> >
> > Nice solution. Does that $! work with every shell?
>
> Doesn't work with the very old csh on Solaris. Tcsh supports it, as do
> bash, zsh, and ksh (88 & 93). No idea when it was introduced in each,
> though if ksh88 has it, I suspect all the bourne shell derivatives do,
> except maybe the original bourne shell itself.
If I read
https://groups.google.com/forum/?hl=en#!original/comp.unix.shell/8s2GFjK-d6Y/WY1bUHAOlCMJ
correctly, ksh88i from 1988 already supported it and as far as I know,
this is required by POSIX, so it should be safe in general.
Mit freundlichen Grüßen
Christian
--
Abtreibung tötet zwei: das Kind und das Gewissen der Mutter.
-- Mutter Teresa
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.