From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#5976: 23.1.93; yanking shell commands - converted to single lines Date: Wed, 21 Apr 2010 12:13:12 +0200 Organization: ThierryVolpiatto Message-ID: <87hbn55d1j.fsf@tux.homenetwork> References: <11AF3D64-5B4A-4131-8BDC-9992B8C1DC54@gmail.com> <87ljcjoxgp.fsf@mail.jurta.org> <87bpddgrl3.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1271846817 21373 80.91.229.12 (21 Apr 2010 10:46:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Apr 2010 10:46:57 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 21 12:46:56 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O4XSI-0002xa-Nq for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Apr 2010 12:46:55 +0200 Original-Received: from localhost ([127.0.0.1]:37778 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4XSH-0005TZ-FC for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Apr 2010 06:46:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4XBN-0007fe-4c for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2010 06:29:25 -0400 Original-Received: from [140.186.70.92] (port=33377 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4XBK-0007c1-4C for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2010 06:29:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4XBH-0000EY-PE for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2010 06:29:21 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54527) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4XBH-0000EE-9B for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2010 06:29:19 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O4X0M-0000JB-IT; Wed, 21 Apr 2010 06:18:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <11AF3D64-5B4A-4131-8BDC-9992B8C1DC54@gmail.com> Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Apr 2010 10:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5976 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.12718450321174 (code B ref -1); Wed, 21 Apr 2010 10:18:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Apr 2010 10:17:12 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4WzX-0000It-KJ for submit@debbugs.gnu.org; Wed, 21 Apr 2010 06:17:11 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4WzU-0000In-J4 for submit@debbugs.gnu.org; Wed, 21 Apr 2010 06:17:09 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:56231) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O4WzR-0007XD-PU for submit@debbugs.gnu.org; Wed, 21 Apr 2010 06:17:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4WzR-0005Lu-2x for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2010 06:17:05 -0400 Original-Received: from [140.186.70.92] (port=51815 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4WzP-0005K1-37 for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2010 06:17:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4WzN-0006r4-Gd for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2010 06:17:03 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:36694) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4WzN-0006qm-5m for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2010 06:17:01 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1O4WzK-0007oB-39 for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2010 12:16:58 +0200 Original-Received: from 202.77.197-77.rev.gaoland.net ([77.197.77.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Apr 2010 12:16:58 +0200 Original-Received: from thierry.volpiatto by 202.77.197-77.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Apr 2010 12:16:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ connect(): No such file or directory Original-Lines: 24 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 202.77.197-77.rev.gaoland.net Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUHBARgJRFPS0WbMBTC TSG/uJs0yyVHAAAACXBIWXMAAAsSAAALEgHS3X78AAAACXZwQWcAAAAwAAAAMADO7oxXAAABpUlE QVQ4y3VTQXKDMAyUnD7AwvQOhtxj5N4LFh9ow/+/UtlpM0BczWSS0Wola7UBeEb3+3kJ/5p9ZLz3 UI0n0J0Y4K/lh1nG24FhlJOR2LdSKtpV5gfi/Zd+NdaJBbB4D5N0JnfUIVp6obZURkJwS2a8b9uX AkgxA5gCEcknAH1s2z0DPooWmjGKcJR+HNZt+9bm0GtGRycRuZGs98Ffr02vABWGopIAhmXmxnQN BwBXZjgFLHRoqbfeYxCLWqsjLyKhbEHW+A5nEs699Q2O80ALrgHTmUTy6P0MnKyKQpKHpoNWokxs F0D5VegvWmEozyE6nuMiS98mWzlUQ9bW8qYfqOaFtzWlYCqGeIs6HEyl08jkrxUG9MF5ipXpOOpd ZMoXPPVSLWJiiwNNB+eRSyxJZmQKcacikgucnCRiHuJOLmyYJRDPwOqAvY4pA+Wy+VS8G26BAsdb Ph2Hw7ORy/H0IOG0TnaM8Cp0XrFYyU0v2z8AqkifPVbLZ0qo/gsRg60C7p+8Ov9jrUIxFde+jnAq X42hyp/c+ZcnVyUYBarrqZt3+R8450png3cWKgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAwOC0wNS0z MVQyMjoxNDoyMiswMjowMK3VBDcAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMDctMTAtMjhUMTc6MDg6 NDgrMDE6MDDLdIcLAAAAEXRFWHRqcGVnOmNvbG9yc3BhY2UAMix1VZ8AAAAgdEVYdGpwZWc6c2Ft cGxpbmctZmFjdG9yADJ4MiwxeDEsMXgxSfqmtAAAAABJRU5ErkJggg== User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:R+WwWz1FGDe4c4WPn3c8QntzlA8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 21 Apr 2010 06:18:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36396 Archived-At: Juri Linkov writes: >>> Doing this in bash, I get the same result because it saves multi-line >>> commands on separate lines in ~/.bash_history and reads each line as >>> a separate command. Why should Emacs be different in this regard? >> >> I could have sworn that aquamacs 1.9 preserved multi-line shell commands >> across shell sessions, but perhaps I'm mistaken. It certainly does >> preserve multi-line shell commands within a single shell session. > > Bash preserves multi-line shell commands within a single shell session too > when its shopt option `cmdhist' is set. > > There is also the option `lithist' that replaces newlines with semicolon > separators. But it doesn't help because it doesn't replace newlines > inside command line arguments. > > So I see no way to save multi-line shell commands in ~/.bash_history > in a way compatible with Bash. Do you have any ideas? It seem eshell does what you ask, maybe you should look there? -- Thierry Volpiatto Gpg key: http://pgp.mit.edu/