1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-25 05:52:42 -08:00

Portable escape SWITCHES in 'package-review-diff-command'

* lisp/emacs-lisp/package.el (package-review-diff-command): Use
'shell-quote-argument' to quote arguments instead of assuming a
POSIX shell.
This commit is contained in:
Philip Kaludercic 2026-01-18 20:49:29 +01:00
parent 0c31ea113f
commit 3c125e2414
No known key found for this signature in database

View file

@ -710,13 +710,14 @@ case you are concerned about moving files between file systems."
(defcustom package-review-diff-command
(cons diff-command
'("-u" ;unified patch formatting
"-N" ;treat absent files as empty
"-x" "'*.elc'" ;ignore byte compiled files
"-x" "'*-autoloads.el'" ;ignore the autoloads file
"-x" "'*-pkg.el'" ;ignore the package description
"-x" "'*.info'" ;ignore compiled Info files
))
(mapcar #'shell-quote-argument
'("-u" ;unified patch formatting
"-N" ;treat absent files as empty
"-x" "*.elc" ;ignore byte compiled files
"-x" "*-autoloads.el" ;ignore the autoloads file
"-x" "*-pkg.el" ;ignore the package description
"-x" "*.info" ;ignore compiled Info files
)))
"Configuration of how `package-review' should generate a Diff.
The structure of the value must be (COMMAND . OPTIONS), where
`diff-command' is rebound to be COMMAND and OPTIONS are command-line