Mercurial > vim
annotate runtime/compiler/irix5_cpp.vim @ 32218:9c6bc59b6d80 v9.0.1440
patch 9.0.1440: "rvim" can execute a shell through :diffpatch
Commit: https://github.com/vim/vim/commit/23a971da506249fc8388f06cd5c011b83406ac5c
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Apr 4 22:04:53 2023 +0100
patch 9.0.1440: "rvim" can execute a shell through :diffpatch
Problem: "rvim" can execute a shell through :diffpatch.
Solution: Disallow the shell "patch" command.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 04 Apr 2023 23:15:06 +0200 |
parents | d1e4abe8342c |
children | e1df51f68736 |
rev | line source |
---|---|
7 | 1 " Vim compiler file |
2 " Compiler: SGI IRIX 5.3 CC or NCC | |
3 " Maintainer: David Harrison <david_jr@users.sourceforge.net> | |
3496
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
4 " Last Change: 2012 Apr 30 |
7 | 5 |
6 if exists("current_compiler") | |
7 finish | |
8 endif | |
9 let current_compiler = "irix5_cpp" | |
3496
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
10 let s:keepcpo= &cpo |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
11 set cpo&vim |
7 | 12 |
13 if exists(":CompilerSet") != 2 " older Vim always used :setlocal | |
14 command -nargs=* CompilerSet setlocal <args> | |
15 endif | |
16 | |
17 CompilerSet errorformat=%E\"%f\"\\,\ line\ %l:\ error(%n):\ , | |
18 \%E\"%f\"\\,\ line\ %l:\ error(%n):\ %m, | |
19 \%W\"%f\"\\,\ line\ %l:\ warning(%n):\ %m, | |
20 \%+IC++\ prelinker:\ %m, | |
21 \%-Z\ \ %p%^, | |
22 \%+C\ %\\{10}%.%#, | |
23 \%-G%.%# | |
3496
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
24 |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
25 let &cpo = s:keepcpo |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
26 unlet s:keepcpo |