From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Evans Newsgroups: gmane.emacs.bugs Subject: bug#18960: 24.4; Eshell history substitution causes error Date: Wed, 05 Nov 2014 11:45:07 -0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415216802 1332 80.91.229.3 (5 Nov 2014 19:46:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Nov 2014 19:46:42 +0000 (UTC) To: 18960@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 05 20:46:31 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xm6XA-0002Bw-Tq for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Nov 2014 20:46:25 +0100 Original-Received: from localhost ([::1]:48244 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm6XA-0000pu-Ie for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Nov 2014 14:46:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm6Wy-0000nt-AT for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 14:46:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xm6Wp-0007YC-6Y for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 14:46:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm6Wp-0007Y8-3p for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 14:46:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xm6Wo-0007t5-Nj for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 14:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Emanuel Evans Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Nov 2014 19:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18960 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.141521674830289 (code B ref -1); Wed, 05 Nov 2014 19:46:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Nov 2014 19:45:48 +0000 Original-Received: from localhost ([127.0.0.1]:50391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xm6WZ-0007sR-24 for submit@debbugs.gnu.org; Wed, 05 Nov 2014 14:45:47 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42095) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xm6WS-0007s2-6Y for submit@debbugs.gnu.org; Wed, 05 Nov 2014 14:45:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xm6WI-0007Pn-Tu for submit@debbugs.gnu.org; Wed, 05 Nov 2014 14:45:39 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm6WI-0007Pi-Jv for submit@debbugs.gnu.org; Wed, 05 Nov 2014 14:45:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm6W9-0000gN-DG for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 14:45:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xm6W0-0007GR-A0 for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 14:45:21 -0500 Original-Received: from mail-pd0-x22d.google.com ([2607:f8b0:400e:c02::22d]:34837) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm6Vz-0007GF-Un for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 14:45:12 -0500 Original-Received: by mail-pd0-f173.google.com with SMTP id v10so1363189pde.4 for ; Wed, 05 Nov 2014 11:45:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=vi6AXwhd5eQAN9BK/sGe8LPHZvxBAKTPEviOCsTV7QU=; b=rlw6ejzMjTIm7JPhDo7rTkc3+CfbsWiCmha0wa7R/8k23HDaXvnrfJd2heed/3639w 3vre30vW8dK07W0OxyM9tmRO9VcbS0orgnI153LC1P0gIbhHKZsMtXLcE8wY48AWYSsC TyAK01IaqTp/4DrhGmFnfegpYS26PBdgtpzgAQ4/QfJ9VLFGAl9DS0smVR5B3U7HVhoB auNh+2NZk7Wm2friHiGL+BWxBphkpkLlGKa2sV2mGImW3QWSkJhfLp2FBOiJ9BSuMrsQ gaRQJp3y7dAAPs2SpbBG1JP4L9sfRGKj6nrw184B5huzN1+T7EjLA+CTHFYvxm0Gv6fp ONGg== X-Received: by 10.66.120.49 with SMTP id kz17mr7682930pab.71.1415216710672; Wed, 05 Nov 2014 11:45:10 -0800 (PST) Original-Received: from localhost (c-71-202-127-227.hsd1.ca.comcast.net. [71.202.127.227]) by mx.google.com with ESMTPSA id ml5sm3943315pab.32.2014.11.05.11.45.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Nov 2014 11:45:10 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:95570 I'm not entirely sure whether history substitution in Eshell is a supported feature, but attempting to use it leads to an error. Steps to reproduce (from emacs -Q, with debug-on-error set to t): 1. M-x eshell 2. cd / 3. ls bin 4. ^bin^usr Expected result: output of "ls usr" Actual result: stacktrace: Debugger entered--Lisp error: (wrong-type-argument stringp 108) string-match("bin" 108) (if (string-match "bin" str) (setq str (replace-match "usr" t nil str))) (lambda (str) (if (string-match "bin" str) (setq str (replace-match "usr" t nil str))) str)(108) mapcar((lambda (str) (if (string-match "bin" str) (setq str (replace-match "usr" t nil str))) str) "lsbin") (lambda (lst) (mapcar (function (lambda (str) (if (string-match "bin" str) (setq str (replace-match "usr" t nil str))) str)) lst))("lsbin") eshell-hist-parse-modifier("lsbin" ":s/bin/usr/") eshell-history-reference("^bin^usr") eshell-expand-history-references(# 785) run-hook-with-args(eshell-expand-history-references # 785) #[0 "\300\304 `S\"\240\210\305\306 `S#\210\307 `S\"\211\205?.\310 !\210\300\304\n S\"\240\210\311\312!\210\313\314\315\316\317\320\321\300.\"\322\"\323\324%D\215\205?.\325 \207" [("^bin^usr") eshell-last-output-end eshell-last-input-start eshell-last-input-end buffer-substring-no-properties run-hook-with-args eshell-expand-input-functions eshell-parse-command-input eshell-update-markers run-hooks eshell-input-filter-functions eshell-terminal funcall make-byte-code 0 "\302\303\301!\203\f.\304\301!\210\207\305\301\300\242\"\210\207" vconcat vector [nil eshell-invoke-directly eval eshell-eval-command] 4 "\n\n(fn)" eshell-life-is-too-much] 10 "\n\n(fn)"]() funcall(#[0 "\300\304 `S\"\240\210\305\306 `S#\210\307 `S\"\211\205?.\310 !\210\300\304\n S\"\240\210\311\312!\210\313\314\315\316\317\320\321\300.\"\322\"\323\324%D\215\205?.\325 \207" [("^bin^usr") eshell-last-output-end eshell-last-input-start eshell-last-input-end buffer-substring-no-properties run-hook-with-args eshell-expand-input-functions eshell-parse-command-input eshell-update-markers run-hooks eshell-input-filter-functions eshell-terminal funcall make-byte-code 0 "\302\303\301!\203\f.\304\301!\210\207\305\301\300\242\"\210\207" vconcat vector [nil eshell-invoke-directly eval eshell-eval-command] 4 "\n\n(fn)" eshell-life-is-too-much] 10 "\n\n(fn)"]) eshell-send-input(nil) call-interactively(eshell-send-input nil nil) command-execute(eshell-send-input) In GNU Emacs 24.4.1 (x86_64-apple-darwin14.0.0, NS apple-appkit-1343.14) of 2014-10-29 on WorkBook-Pro-II.local Configured using: `configure --prefix=/usr/local/Cellar/emacs/24.4 --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs/24.4/share/info/emacs --without-dbus --with-gnutls --with-rsvg --with-imagemagick --with-ns --disable-ns-self-contained' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: EShell Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC [ ? 1 ; 2 c ESC x e s h TAB RET c d SPC / RET l s SPC b i n RET ^ b i n ^ u s r RET DEL DEL DEL DEL DEL DEL DEL DEL ESC x s e t - v a TAB RET d e u DEL b u g TAB o n TAB e r TAB RET t RET ESC O A ESC O A ESC O B RET ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL ^ b i n ^ u s r RET C-a C-@ ESC > ESC w q ESC x r e p o r t TAB RET Recent messages: History item: 11 History item: 12 History item: 13 History item: 14 History item: 1 delete-backward-char: Text is read-only Entering debugger... Mark set Saved text from "Debugger entered--Lisp error: (wrong-typ" Back to top level. Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug help-mode debug cus-edit wid-edit cus-start cus-load em-unix em-term term disp-table ehelp em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl em-basic em-banner em-alias pcomplete comint ansi-color ring esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg eldoc esh-groups eshell esh-module esh-mode esh-util gnutls cl-loaddefs cl-lib mm-archive message format-spec rfc822 mml easymenu mml-sec mailabbrev gmm-utils mailheader mm-decode mm-bodies mm-encode network-stream starttls url-http tls mail-parse rfc2231 url-gw url-cache url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse url-vars epg smtpmail auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core gnus-util password-cache sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils package epg-config xterm time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process cocoa ns multi-tty emacs) Memory information: ((conses 16 151620 23576) (symbols 48 25175 0) (miscs 40 49 239) (strings 32 33041 6577) (string-bytes 1 919530) (vectors 16 22524) (vector-slots 8 1192094 156060) (floats 8 83 614) (intervals 56 511 95) (buffers 960 15))