mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 19:36:40 +00:00
oldtest: windows: revert setting shellslash individually (#10189)
* Revert "oldtests: win: shellslash for cdpath,tags,:find" This reverts commit6245b4873d
. * Revert "oldtests: set shellslash for ":cd" test" This reverts commiteba1ebafe5
. * Revert "oldtests: set shellslash in Test_shellescape()" This reverts commite428fc4b52
. * Revert "fixup! vim-patch:8.0.1782: no simple way to label quickfix entries" This reverts commitac1fbc2860
. * Revert "test/old: pass Test_statusline on Windows" This reverts commit6efa3bff09
. * Revert "oldtests: set shellslash for Test_non_zero_arg" This reverts commit42e1e2495c
. * Revert "oldtests: set shellslash in Test_true_false_arg()" This reverts commit8bd194f98a
. * Remove unnecessary set shellslash Since #10679 no longer requires individual set shellslash, it is removed. Co-Authored-By: erw7 <erw7.github@gmail.com>
This commit is contained in:
@@ -976,8 +976,8 @@ func Test_balloon_show()
|
||||
endfunc
|
||||
|
||||
func Test_shellescape()
|
||||
let [save_shell, save_shellslash] = [&shell, &shellslash]
|
||||
set shell=bash shellslash
|
||||
let save_shell = &shell
|
||||
set shell=bash
|
||||
call assert_equal("'text'", shellescape('text'))
|
||||
call assert_equal("'te\"xt'", shellescape('te"xt'))
|
||||
call assert_equal("'te'\\''xt'", shellescape("te'xt"))
|
||||
@@ -991,13 +991,13 @@ func Test_shellescape()
|
||||
|
||||
call assert_equal("'te\nxt'", shellescape("te\nxt"))
|
||||
call assert_equal("'te\\\nxt'", shellescape("te\nxt", 1))
|
||||
set shell=tcsh shellslash
|
||||
set shell=tcsh
|
||||
call assert_equal("'te\\!xt'", shellescape("te!xt"))
|
||||
call assert_equal("'te\\\\!xt'", shellescape("te!xt", 1))
|
||||
call assert_equal("'te\\\nxt'", shellescape("te\nxt"))
|
||||
call assert_equal("'te\\\\\nxt'", shellescape("te\nxt", 1))
|
||||
|
||||
let [&shell, &shellslash] = [save_shell, save_shellslash]
|
||||
let &shell = save_shell
|
||||
endfunc
|
||||
|
||||
func Test_redo_in_nested_functions()
|
||||
|
Reference in New Issue
Block a user