1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00

(eshell-lisp-command): Do not late-convert string arguments to numbers

unless the whole argument was seen as a number.
This commit is contained in:
John Wiegley 2003-11-14 11:01:26 +00:00
parent 746a9754a0
commit 175acc2dec
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2003-11-14 John Wiegley <johnw@newartisans.com>
* eshell/esh-var.el (eshell-parse-variable-ref): Added a backslash
that was optional, but obviously missing based on surrounding
code.
* eshell/esh-cmd.el (eshell-lisp-command): Do not late-convert
string arguments to numbers unless the whole argument was seen as
a number.

View File

@ -1400,7 +1400,8 @@ messages, and errors."
(let ((arg (car args)))
(if (and (stringp arg)
(> (length arg) 0)
(get-text-property 0 'number arg))
(not (text-property-not-all
0 (length arg) 'number t arg)))
(setcar args (string-to-number arg))))
(setq args (cdr args))))
(eshell-apply object eshell-last-arguments))