* lisp/eshell/esh-util.el (eshell-read-hosts-file): Skip comment lines.
Fixes: debbugs:10549
+2012-01-23 Mike Lamb <mrlamb@gmail.com> (tiny change)
+
+ * eshell/esh-util.el (eshell-read-hosts-file):
+ Skip comment lines. (Bug#10549)
+
2012-01-23 Juanma Barranquero <lekktu@gmail.com>
* subr.el (display-delayed-warnings): Doc fix.
(insert-file-contents eshell-hosts-file)
(goto-char (point-min))
(while (re-search-forward
- "^\\(\\S-+\\)\\s-+\\(\\S-+\\)\\(\\s-*\\(\\S-+\\)\\)?" nil t)
+ "^\\([^#[:space:]]+\\)\\s-+\\(\\S-+\\)\\(\\s-*\\(\\S-+\\)\\)?" nil t)
(if (match-string 1)
(add-to-list 'hosts (match-string 1)))
(if (match-string 2)