Friday, January 1, 2021

Re: exit from terminal OK?

> i started a :term from a gvim session to grep for a string, found the string
> and the module i wanted to edit, and from the terminal i started another
> gvim session to edit a 2nd file
>
> switching back to the 1st window i typed 'exit' in the terminal to end that,
> but it wouldn't end until i quit the 2nd gvim session
>
> is this the expected behavior? was i supposed to start my 2nd gvim with an
> ampersand at the end of the command?

The terminal is automatically closed when the job is finished. If you
start a child process, the parent process (the shell) will hang around
until the child is done. This the job isn't fully finished. You can
manually close the terminal though.

I think this is OK, although it might be unexpected that the terminal
window closes when the child process is done. And in this case any
output might be lost in the redraw.

To simulate the effect use this shell script:

#!/bin/sh
sleep 3
echo DONE NOW

And execute that from the shell, then type "exit".

--
hundred-and-one symptoms of being an internet addict:
77. The phone company asks you to test drive their new PBX system

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/202101011744.101Hieqs1588163%40masaka.moolenaar.net.

No comments: