mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(filesets-cmd-shell-command): Quote buffer-file-name to protect whitespace and
metacharacters from the shell.
This commit is contained in:
parent
53bc2a31a3
commit
65b4263fd0
2 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2006-10-14 Lennart Borgman <lennart.borgman.073@student.lu.se>
|
||||
|
||||
* filesets.el (filesets-cmd-shell-command): Quote buffer-file-name
|
||||
to protect whitespace and metacharacters from the shell.
|
||||
|
||||
2006-10-13 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
|
||||
|
||||
* apropos.el (apropos-pattern-quoted): Fix a typo in a doc
|
||||
|
|
|
|||
|
|
@ -1701,7 +1701,7 @@ Replace <file-name> or <<file-name>> with filename."
|
|||
ok)
|
||||
t)))
|
||||
(when ok
|
||||
(let ((cmd (format txt (buffer-file-name))))
|
||||
(let ((cmd (format txt (shell-quote-argument (buffer-file-name)))))
|
||||
(message "Filesets: %s" cmd)
|
||||
(filesets-cmd-show-result cmd
|
||||
(shell-command-to-string cmd))))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue