GNU bug report logs - #16012
24.3.50; Multi-line shell commands appear as one-liners in the history

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: "Sebastien Vauban" <sva-news@HIDDEN>; dated Sat, 30 Nov 2013 09:52:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 16012 <at> debbugs.gnu.org:


Received: (at 16012) by debbugs.gnu.org; 25 Aug 2014 18:46:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 25 14:46:51 2014
Received: from localhost ([127.0.0.1]:51971 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XLzI3-0007eL-9K
	for submit <at> debbugs.gnu.org; Mon, 25 Aug 2014 14:46:51 -0400
Received: from dd5e0353a.access.telenet.be ([213.224.53.58]:47009
 helo=mail.missioncriticalit.com)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <sva-news@HIDDEN>) id 1XLzHy-0007dv-8l
 for 16012 <at> debbugs.gnu.org; Mon, 25 Aug 2014 14:46:47 -0400
Received: from MUNDANEUM.i-did-not-set--mail-host-address--so-tickle-me
 (ip-83-101-44-240.customer.schedom-europe.net [83.101.44.240])
 by mail.missioncriticalit.com (Postfix) with ESMTPSA id 78E3A501300
 for <16012 <at> debbugs.gnu.org>; Mon, 25 Aug 2014 20:46:39 +0200 (CEST)
From: Sebastien Vauban <sva-news@HIDDEN>
To: 16012 <at> debbugs.gnu.org
Subject: Re: Multi-line shell commands appear as one-liners in the history
Organization: Sebastien Vauban
X-Url: Under construction...
X-Archive: encrypt
Date: Mon, 25 Aug 2014 20:45:52 +0200
Message-ID: <861ts4qufz.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (windows-nt)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.9 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has
 identified this incoming email as possible spam.  The original message
 has been attached to this so you can view it (if it isn't spam) or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Hello, >> ls \ >> *.html >> >> Recalling the previous command
 will just show "*.html", not "ls >>\\n*.html". > > Right, currently shell-mode
 has no idea that these were two lines of > the same command. The semantics
 of a terminating backslash completely > eludes it. > >> Is there a solution
 to this? > > A patch for shell.el would probably do it, assuming it's the
 right > patch ;-) [...] 
 Content analysis details:   (1.9 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 1.3 RCVD_IN_RP_RNBL        RBL: Relay in RNBL,
 https://senderscore.org/blacklistlookup/
 [213.224.53.58 listed in bl.score.senderscore.com]
 0.7 SPF_NEUTRAL            SPF: sender does not match SPF record (neutral)
 0.0 FAKE_REPLY_C           FAKE_REPLY_C
X-Debbugs-Envelope-To: 16012
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.9 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has
 identified this incoming email as possible spam.  The original message
 has been attached to this so you can view it (if it isn't spam) or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Hello, >> ls \ >> *.html >> >> Recalling the previous command
    will just show "*.html", not "ls >>\\n*.html". > > Right, currently shell-mode
    has no idea that these were two lines of > the same command. The semantics
    of a terminating backslash completely > eludes it. > >> Is there a solution
    to this? > > A patch for shell.el would probably do it, assuming it's the
    right > patch ;-) [...] 
 
 Content analysis details:   (1.9 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  1.3 RCVD_IN_RP_RNBL        RBL: Relay in RNBL,
                             https://senderscore.org/blacklistlookup/
                             [213.224.53.58 listed in bl.score.senderscore.com]
  0.7 SPF_NEUTRAL            SPF: sender does not match SPF record (neutral)
  0.0 FAKE_REPLY_C           FAKE_REPLY_C

Hello,

>> ls \
>> *.html
>>
>> Recalling the previous command will just show "*.html", not "ls
>>\\n*.html".
>
> Right, currently shell-mode has no idea that these were two lines of
> the same command.  The semantics of a terminating backslash completely
> eludes it.
>
>> Is there a solution to this?
>
> A patch for shell.el would probably do it, assuming it's the right
> patch ;-)

I've just read notes about "Comint Patch":

  =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80
  =E2=94=82 If you enter a multi-line SQL statement in an SQLi buffer, you =
can
  =E2=94=82 retrieve it as a multi-line command from the MinibufferHistory.=
 Not so
  =E2=94=82 when you exit Emacs and restart it at a later date: As you exit=
 SQLi
  =E2=94=82 mode the command history is written to a file; when you enter S=
QLi mode
  =E2=94=82 again the history is loaded one command per line. If you entered
  =E2=94=82 multi-line commands, each line of those commands will end up as=
 one
  =E2=94=82 command in the input history of your new session.
  =E2=94=82=20
  =E2=94=82 This patch will be in Emacs 21.
  =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80

See http://www.emacswiki.org/emacs-es/ComintPatched

Aren't we talking of this bug?  If yes, why isn't it yet in Emacs, then?

Best regards,
  Seb

--=20
Sebastien Vauban




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#16012; Package emacs. Full text available.

Message received at 16012 <at> debbugs.gnu.org:


Received: (at 16012) by debbugs.gnu.org; 1 Dec 2013 21:13:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 01 16:13:47 2013
Received: from localhost ([127.0.0.1]:53585 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VnEKp-0005p9-AQ
	for submit <at> debbugs.gnu.org; Sun, 01 Dec 2013 16:13:47 -0500
Received: from ironport2-out.teksavvy.com ([206.248.154.181]:33605)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1VnEKn-0005ow-Kw
 for 16012 <at> debbugs.gnu.org; Sun, 01 Dec 2013 16:13:46 -0500
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av8EABK/CFFMCox4/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCwsOJhIUGA0kLodwBsEtkQoDiGGcGYFegxU
X-IPAS-Result: Av8EABK/CFFMCox4/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCwsOJhIUGA0kLodwBsEtkQoDiGGcGYFegxU
X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="40856949"
Received: from 76-10-140-120.dsl.teksavvy.com (HELO pastel.home)
 ([76.10.140.120])
 by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA;
 01 Dec 2013 16:13:40 -0500
Received: by pastel.home (Postfix, from userid 20848)
 id ED52F60CCE; Sun,  1 Dec 2013 16:13:39 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: "Sebastien Vauban" <sva-news@HIDDEN>
Subject: Re: bug#16012: 24.3.50;
 Multi-line shell commands appear as one-liners in the history
Message-ID: <jwvtxes46qn.fsf-monnier+emacsbugs@HIDDEN>
References: <86eh5yb4ls.fsf@HIDDEN>
Date: Sun, 01 Dec 2013 16:13:39 -0500
In-Reply-To: <86eh5yb4ls.fsf@HIDDEN> (Sebastien Vauban's message of
 "Sat, 30 Nov 2013 10:50:39 +0100")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 16012
Cc: 16012 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

>> ls \
>> *.html
> Recalling the previous command will just show "*.html", not "ls \\n*.html".

Right, currently shell-mode has no idea that these were two lines of the
same command.  The semantics of a terminating backslash completely
eludes it.

> Is there a solution to this?

A patch for shell.el would probably do it, assuming it's the right patch ;-)


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#16012; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 Nov 2013 09:51:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 30 04:51:44 2013
Received: from localhost ([127.0.0.1]:51151 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VmhDE-0005lE-1y
	for submit <at> debbugs.gnu.org; Sat, 30 Nov 2013 04:51:44 -0500
Received: from eggs.gnu.org ([208.118.235.92]:54789)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <sva-news@HIDDEN>) id 1VmhDC-0005l2-GX
 for submit <at> debbugs.gnu.org; Sat, 30 Nov 2013 04:51:42 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <sva-news@HIDDEN>) id 1VmhCy-0007sG-Kk
 for submit <at> debbugs.gnu.org; Sat, 30 Nov 2013 04:51:37 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:34175)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <sva-news@HIDDEN>) id 1VmhCy-0007sB-Ha
 for submit <at> debbugs.gnu.org; Sat, 30 Nov 2013 04:51:28 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:56458)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <sva-news@HIDDEN>) id 1VmhCs-0002zm-Hr
 for bug-gnu-emacs@HIDDEN; Sat, 30 Nov 2013 04:51:28 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <sva-news@HIDDEN>) id 1VmhCm-0007pc-Im
 for bug-gnu-emacs@HIDDEN; Sat, 30 Nov 2013 04:51:22 -0500
Received: from dd5e0353a.access.telenet.be ([213.224.53.58]:46977
 helo=mail.missioncriticalit.com)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <sva-news@HIDDEN>) id 1VmhCm-0007pV-CL
 for bug-gnu-emacs@HIDDEN; Sat, 30 Nov 2013 04:51:16 -0500
Received: from MUNDANEUM.i-did-not-set--mail-host-address--so-tickle-me
 (unknown [10.10.4.62])
 by mail.missioncriticalit.com (Postfix) with ESMTPS id 6B45350099D
 for <bug-gnu-emacs@HIDDEN>; Sat, 30 Nov 2013 10:53:52 +0100 (CET)
From: "Sebastien Vauban" <sva-news@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.3.50; Multi-line shell commands appear as one-liners in the history
Organization: Sebastien Vauban
X-Url: Under construction...
X-Archive: encrypt
Date: Sat, 30 Nov 2013 10:50:39 +0100
Message-ID: <86eh5yb4ls.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.3 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.3 (----)

Hello,

When typing multi-line commands (on purpose, or because of a missing
component), they end up as standalone lines in the shell command history:

> ls \
> *.html

Recalling the previous command will just show "*.html", not "ls \\n*.html".

Is there a solution to this?

Best regards,
Sebastien Vauban




Acknowledgement sent to "Sebastien Vauban" <sva-news@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#16012; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.