neovim/scripts
Marco Hinz 9fb278ddea
vim-patch.sh: multiline printf -> heredoc (#11351)
The following script is cut out from vim-patch.sh:

```sh
#!/usr/bin/env bash

BASENAME=vim-patch.sh

printf "\nInstructions:
To port one of the above patches to Neovim, execute this script with the patch revision as argument and follow the instructions, e.g.
'%s -p v8.0.1234', or '%s -P v8.0.1234'

NOTE: Please port the _oldest_ patch if you possibly can.
      You can use '%s -l path/to/file' to see what patches are missing for a file.
" "${BASENAME}" "${BASENAME}" "${BASENAME}"
```

The code itself should be correct, but shellcheck 0.7.0 says:

```
In /tmp/test.sh line 5:
  printf "\nInstructions:
         ^-- SC2183: This format string has 2 variables, but is passed 3 arguments.
```

We also had a problem before that a `%s` was added, but the accompanying
argument to printf was forgotten. Using a heredoc is less error-prone, since we
insert variables directly.
2019-11-08 20:47:58 +01:00
..
check_urls.vim vim-patch: move test_urls.vim out of runtime/ 2018-11-12 12:36:40 -05:00
check-includes.py py: flake8 fixes 2019-07-29 22:14:23 +02:00
download-unicode-files.sh scripts: Tell curl to follow redirects 2017-06-29 20:25:51 -04:00
finddeclarations.pl Remove remaining declarations with new script: finddeclarations.pl 2014-06-02 11:04:18 -03:00
gen_help_html.py py: flake8 fixes 2019-07-29 22:14:23 +02:00
gen_vimdoc.py lint 2019-10-26 16:21:22 -07:00
genappimage.sh genappimage.sh: migrate to linuxdeploy #10027 2019-05-18 20:38:19 +02:00
genvimvim.lua runtime/syntax: Fix highlighting of augroup contents (#9328) 2018-12-08 01:16:58 +01:00
git-log-pretty-since.sh release.sh: Format issue-numbers in descriptions [ci skip] 2019-01-04 06:03:47 +01:00
legacy2luatest.pl legacy2luatest: Use before_each instead of setup. 2016-02-01 09:09:08 +01:00
lua2dox_filter gen_vimdoc.py: get Lua docs via lua2dox.lua #9740 2019-05-18 22:01:14 +02:00
lua2dox.lua scripts/lua2dox.lua: Remove class declaration block 2019-10-27 11:58:28 +09:00
movedocs.pl Move documentation from function declarations to definitions 2014-06-02 11:04:04 -03:00
pvscheck.sh pvscheck.sh: Remove --verbose flag #10473 2019-07-12 11:36:19 +02:00
release.sh release.sh [ci skip] 2019-09-15 23:08:40 -07:00
shadacat.py Merge #11319 'inccommand: fix issues with modifiers and prompting' 2019-11-05 17:34:21 -08:00
stripdecls.py scripts: autopep8 2019-07-29 22:14:23 +02:00
update_terminfo.sh update_terminfo.sh: NOLINT data arrays 2018-12-28 23:52:03 +01:00
update_version_stamp.lua update_version_stamp.lua: Use NUL on Windows #11323 2019-11-02 04:54:59 +09:00
vim-patch.sh vim-patch.sh: multiline printf -> heredoc (#11351) 2019-11-08 20:47:58 +01:00
vimpatch.lua vimpatch.lua: automate version.c 2017-12-27 12:30:55 +01:00
windows.ti win/TUI: fix text overrides line numbers #9474 2019-01-09 10:40:02 +01:00