diff options
author | Brad King <brad.king@kitware.com> | 2023-04-04 13:29:45 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-04-04 13:29:52 (GMT) |
commit | 9831bb160ac94a92ce3f3a4ebea0948971f62f98 (patch) | |
tree | de0e657b4dd9ff9a958af1042a1efe3ff13a8703 | |
parent | 15a579339daa53816755907c6acbed5b9d73b1e6 (diff) | |
parent | 915ef090c9c62d9e67652af3d75c46dd75abc5d0 (diff) | |
download | CMake-9831bb160ac94a92ce3f3a4ebea0948971f62f98.zip CMake-9831bb160ac94a92ce3f3a4ebea0948971f62f98.tar.gz CMake-9831bb160ac94a92ce3f3a4ebea0948971f62f98.tar.bz2 |
Merge topic 'pr/fix-cmake-mode-el'
915ef090c9 cmake-mode.el: escape shell arguments
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8386
-rw-r--r-- | Auxiliary/cmake-mode.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Auxiliary/cmake-mode.el b/Auxiliary/cmake-mode.el index a11becb..7590ee3 100644 --- a/Auxiliary/cmake-mode.el +++ b/Auxiliary/cmake-mode.el @@ -372,7 +372,7 @@ optional argument topic will be appended to the argument list." (interactive "s") (let* ((bufname (if buffer buffer (concat "*CMake" type (if topic "-") topic "*"))) (buffer (if (get-buffer bufname) (get-buffer bufname) (generate-new-buffer bufname))) - (command (concat cmake-mode-cmake-executable " " type " " topic)) + (command (concat cmake-mode-cmake-executable " " type " " (shell-quote-argument topic))) ;; Turn of resizing of mini-windows for shell-command. (resize-mini-windows nil) ) @@ -391,7 +391,7 @@ optional argument topic will be appended to the argument list." (interactive "s") (let* ((bufname (if buffer buffer (concat "*CMake" type (if topic "-") topic "*"))) (buffer (if (get-buffer bufname) (get-buffer bufname) (generate-new-buffer bufname))) - (command (concat cmake-mode-cmake-executable " " type " " topic)) + (command (concat cmake-mode-cmake-executable " " type " " (shell-quote-argument topic))) ;; Turn of resizing of mini-windows for shell-command. (resize-mini-windows nil) ) |