; Be more strict with command arguments for a few Eshell commands
* lisp/eshell/em-dirs.el (eshell/pwd): * lisp/eshell/em-unix.el (eshell/whoami): * lisp/eshell/esh-proc.el (eshell/jobs): Don't accept arguments.
This commit is contained in:
parent
a3cd284b90
commit
c4d16909fa
3 changed files with 3 additions and 3 deletions
|
@ -316,7 +316,7 @@ Thus, this does not include the current directory.")
|
|||
(`(boundaries . ,suffix)
|
||||
`(boundaries 0 . ,(string-search "/" suffix))))))))))
|
||||
|
||||
(defun eshell/pwd (&rest _args)
|
||||
(defun eshell/pwd ()
|
||||
"Change output from `pwd' to be cleaner."
|
||||
(let* ((path default-directory)
|
||||
(len (length path)))
|
||||
|
|
|
@ -1018,7 +1018,7 @@ Show wall-clock time elapsed during execution of COMMAND.")
|
|||
(eshell-stringify-list
|
||||
(flatten-tree (cdr time-args))))))))
|
||||
|
||||
(defun eshell/whoami (&rest _args)
|
||||
(defun eshell/whoami ()
|
||||
"Make \"whoami\" Tramp aware."
|
||||
(eshell-user-login-name))
|
||||
|
||||
|
|
|
@ -193,7 +193,7 @@ This is like `process-live-p', but additionally checks whether
|
|||
|
||||
(defalias 'eshell/wait #'eshell-wait-for-process)
|
||||
|
||||
(defun eshell/jobs (&rest _args)
|
||||
(defun eshell/jobs ()
|
||||
"List processes, if there are any."
|
||||
(and (fboundp 'process-list)
|
||||
(process-list)
|
||||
|
|
Loading…
Add table
Reference in a new issue