From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#5976: 23.1.93; yanking shell commands - converted to single lines Date: Wed, 21 Apr 2010 11:43:36 +0300 Organization: JURTA Message-ID: <87bpddgrl3.fsf@mail.jurta.org> References: <11AF3D64-5B4A-4131-8BDC-9992B8C1DC54@gmail.com> <87ljcjoxgp.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 1271841103 553 80.91.229.12 (21 Apr 2010 09:11:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Apr 2010 09:11:43 +0000 (UTC) Cc: 5976@debbugs.gnu.org To: Warren Harris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 21 11:11:41 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 1O4Vy6-0006AQ-Dc for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Apr 2010 11:11:38 +0200 Original-Received: from localhost ([127.0.0.1]:38730 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4Vy5-0008Rm-Ml for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Apr 2010 05:11:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4VmH-00066H-IH for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2010 04:59:25 -0400 Original-Received: from [140.186.70.92] (port=44820 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4VmD-00061T-2S for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2010 04:59:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4VmB-0005XF-6Z for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2010 04:59:20 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58608) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4VmB-0005X2-4Y for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2010 04:59:19 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O4Vi2-0008AZ-9j; Wed, 21 Apr 2010 04:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov 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 08:55: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 5976-submit@debbugs.gnu.org id=B5976.127184007531392 (code B ref 5976); Wed, 21 Apr 2010 08:55:02 +0000 Original-Received: (at 5976) by debbugs.gnu.org; 21 Apr 2010 08:54:35 +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 1O4Vha-0008AH-SK for submit@debbugs.gnu.org; Wed, 21 Apr 2010 04:54:35 -0400 Original-Received: from smtp-out2.starman.ee ([85.253.0.4] helo=mx2.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4VhY-0008AA-PL for 5976@debbugs.gnu.org; Wed, 21 Apr 2010 04:54:33 -0400 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.28.200.cable.starman.ee [82.131.28.200]) by mx2.starman.ee (Postfix) with ESMTP id 4519D3F40E4; Wed, 21 Apr 2010 11:54:24 +0300 (EEST) In-Reply-To: (Warren Harris's message of "Tue, 20 Apr 2010 09:29:08 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 21 Apr 2010 04:55: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:36394 Archived-At: >> 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? -- Juri Linkov http://www.jurta.org/emacs/