ambrevar/shell: Add delete-file*.

master
Pierre Neidhardt 2021-04-06 12:22:09 +02:00
parent 327fffcd3c
commit 14c4aa8136
1 changed files with 5 additions and 0 deletions

View File

@ -54,6 +54,11 @@ Return the first non-deleted directory."
(uiop:ensure-all-directories-exist (list (uiop:ensure-directory-pathname path)))
path)
(export-always 'delete-file*)
(defun delete-file* (file)
"Like `cl:delete-file' but does not handle wildcards."
(cl:delete-file (uiop:parse-native-namestring file)))
(defun system-signal (pid-or-pids &key (signal 'term) options)
"OPTIONS are PKILL options."
;; TODO: Is it possible to kill a group without pkill, maybe with osicat?