From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Autogen in Emacs Shell Date: Fri, 01 May 2015 22:38:10 +0300 Message-ID: <83d22kqeal.fsf@gnu.org> References: <83twvzszjv.fsf@gnu.org> <20150501092657.GA19316@tuxteam.de> <20150501150340.GB30776@tuxteam.de> <83sibgqjb3.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1430509134 23177 80.91.229.3 (1 May 2015 19:38:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 May 2015 19:38:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 01 21:38:44 2015 Return-path: Envelope-to: geh-help-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 1YoGll-0008BK-Rl for geh-help-gnu-emacs@m.gmane.org; Fri, 01 May 2015 21:38:42 +0200 Original-Received: from localhost ([::1]:55320 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoGlk-0003kP-VJ for geh-help-gnu-emacs@m.gmane.org; Fri, 01 May 2015 15:38:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoGlc-0003ie-D3 for help-gnu-emacs@gnu.org; Fri, 01 May 2015 15:38:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YoGlY-0004LS-Vv for help-gnu-emacs@gnu.org; Fri, 01 May 2015 15:38:32 -0400 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:34623) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoGlY-0004L5-OM for help-gnu-emacs@gnu.org; Fri, 01 May 2015 15:38:28 -0400 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NNO00L00RICFA00@mtaout29.012.net.il> for help-gnu-emacs@gnu.org; Fri, 01 May 2015 22:37:19 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NNO00G36RU7M150@mtaout29.012.net.il> for help-gnu-emacs@gnu.org; Fri, 01 May 2015 22:37:19 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.185 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104151 Archived-At: > Date: Fri, 1 May 2015 20:35:11 +0200 > From: Alexander Shukaev > Cc: help-gnu-emacs > > Finally, do you have any comments on the issue with "~/emacs.d/init_bash.sh" > that I've described before. Let me introduce another test case briefly. Put > > # Hello, World! > # Hello, World! > # Hello, World! > > into "~/emacs.d/init_bash.sh". > > Then start 'bash' from Emacs. Here is what I see: > > 2015.05.01 Friday 20:30:46 > Haroogan@G75VW:~ > $ > 2015.05.01 Friday 20:30:46 > Haroogan@G75VW:~ > $ > 2015.05.01 Friday 20:30:46 > Haroogan@G75VW:~ > $ > 2015.05.01 Friday 20:30:46 > Haroogan@G75VW:~ > $ > > Those 3 newlines were really typed into the shell. How come? Now that we know that the contents of this file are sent as an input string to the shell when it starts, what did you expect? The shell gets 3 lines, each one of which is a comment, so it does nothing, but displays the newline. What is surprising here?