changeset 53051:bf3ee9e2ceda

(eshell-lisp-command): Do not late-convert string arguments to numbers unless the whole argument was seen as a number.
author John Wiegley <johnw@newartisans.com>
date Fri, 14 Nov 2003 10:59:32 +0000
parents 3d21b074dd49
children e2abdb097d99
files lisp/eshell/esh-cmd.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/eshell/esh-cmd.el	Fri Nov 14 10:59:04 2003 +0000
+++ b/lisp/eshell/esh-cmd.el	Fri Nov 14 10:59:32 2003 +0000
@@ -1400,7 +1400,8 @@
 		      (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))