mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 12:45:17 -07:00
9fb278ddea
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. |
||
---|---|---|
.. | ||
check_urls.vim | ||
check-includes.py | ||
download-unicode-files.sh | ||
finddeclarations.pl | ||
gen_help_html.py | ||
gen_vimdoc.py | ||
genappimage.sh | ||
genvimvim.lua | ||
git-log-pretty-since.sh | ||
legacy2luatest.pl | ||
lua2dox_filter | ||
lua2dox.lua | ||
movedocs.pl | ||
pvscheck.sh | ||
release.sh | ||
shadacat.py | ||
stripdecls.py | ||
update_terminfo.sh | ||
update_version_stamp.lua | ||
vim-patch.sh | ||
vimpatch.lua | ||
windows.ti |