diff options
Diffstat (limited to 'lisp/eshell/em-basic.el')
| -rw-r--r-- | lisp/eshell/em-basic.el | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lisp/eshell/em-basic.el b/lisp/eshell/em-basic.el index d3b15c900b7..ba868cee59e 100644 --- a/lisp/eshell/em-basic.el +++ b/lisp/eshell/em-basic.el | |||
| @@ -113,11 +113,16 @@ or `eshell-printn' for display." | |||
| 113 | "Implementation of `echo'. See `eshell-plain-echo-behavior'." | 113 | "Implementation of `echo'. See `eshell-plain-echo-behavior'." |
| 114 | (eshell-eval-using-options | 114 | (eshell-eval-using-options |
| 115 | "echo" args | 115 | "echo" args |
| 116 | '((?n nil (nil) output-newline "do not output the trailing newline") | 116 | '((?n nil (nil) output-newline |
| 117 | (?N nil (t) output-newline "terminate with a newline") | 117 | "do not output the trailing newline") |
| 118 | (?h "help" nil nil "output this help screen") | 118 | (?N nil (t) output-newline |
| 119 | "terminate with a newline") | ||
| 120 | (?E nil nil _disable-escapes | ||
| 121 | "don't interpret backslash escapes (default)") | ||
| 122 | (?h "help" nil nil | ||
| 123 | "output this help screen") | ||
| 119 | :preserve-args | 124 | :preserve-args |
| 120 | :usage "[-n | -N] [object]") | 125 | :usage "[OPTION]... [OBJECT]...") |
| 121 | (if eshell-plain-echo-behavior | 126 | (if eshell-plain-echo-behavior |
| 122 | (eshell-echo args (if output-newline (car output-newline) t)) | 127 | (eshell-echo args (if output-newline (car output-newline) t)) |
| 123 | ;; In Emacs 28.1 and earlier, "-n" was used to add a newline to | 128 | ;; In Emacs 28.1 and earlier, "-n" was used to add a newline to |