Monday, June 4, 2018

Re: Bash in :shell vs :terminal

On Mo, 04 Jun 2018, Jason Franklin wrote:

> That may be the solution we're looking for, if it's possible. Also, note that
> passing the patch level isn't really necessary since a user can define an
> environment variable on their own for this purpose.

Well the User can also set a environment variable BASH_VERSION and
overwrite the existing one. However that is not a good idea. Having a
variable which returns e.g. v:version + patchlevel allows scripts to
handle differences in Vim patchlevel, like the prompt buffer that is
about to be developed now.

>
> The real problem is that descendant processes need to know that their
> controlling terminal is a Vim terminal window.

That does not work on Windows and I am not even sure, that it is Vims
responsibility to assign a device name. So no, I don't consider this to
be a stable solution.


Best,
Christian
--
Frage sich doch jeder, mit welchem Organ er allenfalls in seine
Zeit einwirken kann und wird.
-- Goethe, Maximen und Reflektionen, Nr. 554

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: