mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-03 06:00:50 -08:00
Shell-quote wildcards when invoking 'vc-git-grep'
* lisp/vc/vc-git.el (vc-git-grep): Apply shell quoting to filename wildcards to ensure globbing is done by git rather than the shell. (Bug#29303)
This commit is contained in:
parent
0540df10e6
commit
6067f0c702
1 changed files with 3 additions and 1 deletions
|
|
@ -1430,7 +1430,9 @@ This command shares argument histories with \\[rgrep] and \\[grep]."
|
|||
nil nil 'grep-history)
|
||||
nil))
|
||||
(t (let* ((regexp (grep-read-regexp))
|
||||
(files (grep-read-files regexp))
|
||||
(files
|
||||
(mapconcat #'shell-quote-argument
|
||||
(split-string (grep-read-files regexp)) " "))
|
||||
(dir (read-directory-name "In directory: "
|
||||
nil default-directory t)))
|
||||
(list regexp files dir))))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue