Mercurial > vim
comparison src/testdir/test_terminal.vim @ 18514:39b0c28fe495 v8.1.2251
patch 8.1.2251: ":term command" may not work without a shell
Commit: https://github.com/vim/vim/commit/197c6b7da3ad4c3e3942a553f5dbc35722a4a349
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 3 23:37:12 2019 +0100
patch 8.1.2251: ":term command" may not work without a shell
Problem: ":term command" may not work without a shell.
Solution: Add the ++shell option to :term. (closes https://github.com/vim/vim/issues/3340)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 03 Nov 2019 23:45:03 +0100 |
parents | 0eeaa9a6e4e7 |
children | dfdc29643c91 |
comparison
equal
deleted
inserted
replaced
18513:5a62159b9a48 | 18514:39b0c28fe495 |
---|---|
2212 call term_sendkeys(buf, "exit\r") | 2212 call term_sendkeys(buf, "exit\r") |
2213 exe buf . "bwipe!" | 2213 exe buf . "bwipe!" |
2214 call delete('Xtext') | 2214 call delete('Xtext') |
2215 endfunc | 2215 endfunc |
2216 | 2216 |
2217 func Test_terminal_shell_option() | |
2218 CheckUnix | |
2219 " exec is a shell builtin command, should fail without a shell. | |
2220 term exec ls runtest.vim | |
2221 call WaitForAssert({-> assert_match('job failed', term_getline(bufnr(), 1))}) | |
2222 bwipe! | |
2223 | |
2224 term ++shell exec ls runtest.vim | |
2225 call WaitForAssert({-> assert_match('runtest.vim', term_getline(bufnr(), 1))}) | |
2226 bwipe! | |
2227 endfunc | |
2228 | |
2217 func Test_terminal_setapi_and_call() | 2229 func Test_terminal_setapi_and_call() |
2218 if !CanRunVimInTerminal() | 2230 if !CanRunVimInTerminal() |
2219 return | 2231 return |
2220 endif | 2232 endif |
2221 | 2233 |