From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Pennebaker Newsgroups: gmane.emacs.help Subject: Re: How do I remove the extra bash-3.2$ from shell-mode? Date: Mon, 4 May 2015 19:09:26 -0500 Message-ID: References: <87383cgj8f.fsf@kuiper.lan.informatimago.com> <87y4l4f1in.fsf@kuiper.lan.informatimago.com> <87r3qwf1g0.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1430784589 31423 80.91.229.3 (5 May 2015 00:09:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 May 2015 00:09:49 +0000 (UTC) Cc: Emacs Help To: "Pascal J. Bourguignon" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 05 02:09:46 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 1YpQQg-00016S-J7 for geh-help-gnu-emacs@m.gmane.org; Tue, 05 May 2015 02:09:42 +0200 Original-Received: from localhost ([::1]:36350 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpQQf-0000Hv-O7 for geh-help-gnu-emacs@m.gmane.org; Mon, 04 May 2015 20:09:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpQQU-0000Ha-5t for help-gnu-emacs@gnu.org; Mon, 04 May 2015 20:09:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpQQS-0004PJ-17 for help-gnu-emacs@gnu.org; Mon, 04 May 2015 20:09:30 -0400 Original-Received: from mail-ob0-x232.google.com ([2607:f8b0:4003:c01::232]:35374) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpQQR-0004Oy-J3 for help-gnu-emacs@gnu.org; Mon, 04 May 2015 20:09:27 -0400 Original-Received: by obcux3 with SMTP id ux3so118437994obc.2 for ; Mon, 04 May 2015 17:09:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Fh5//FmkOckq5TkOp/Uo4rzcl0hK5J+nWy63JVCNP04=; b=d8JamCTwM0LfTGMuo4Ujv+s3pJ8p3KJb2bvLTW8BQnnOLX+3THSrfwuz3hNqCn9Wnu DVnnA6+KmGAvfrR8/imwp/Y6+mA6ESgkjKpbH9fuMUHcmKq7fvwRFtSDFEqjNWjjPmMH NwEbo7LTa31X5sNj1/UOzSjiX7mP021RHeLf4pQ+MtlHz6iLCQkS8u0/FY3zDSCU7WiJ WwDLsOfrsoDkkdThcALUfqPSXA1YZ3x58HG49DMUUdPQ3D3MFE+ECpvpV79HkeuCx6dt wC5sO1/FMPzgGs0d3ccmGh2lu6TDkyG0M4jTpsuNJAHBBzf3e5QC/LNPI/hM2A0KX5tK eMNg== X-Received: by 10.202.136.131 with SMTP id k125mr16982777oid.2.1430784566609; Mon, 04 May 2015 17:09:26 -0700 (PDT) Original-Received: by 10.76.125.169 with HTTP; Mon, 4 May 2015 17:09:26 -0700 (PDT) In-Reply-To: <87r3qwf1g0.fsf@kuiper.lan.informatimago.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::232 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:104198 Archived-At: Emacs seems to be printing its default PS1 prompt before emacs_bash has fully executed. Is there a way to suppress this? On Mon, May 4, 2015 at 5:00 PM, Pascal J. Bourguignon wrote: > "Pascal J. Bourguignon" writes: > > > Andrew Pennebaker writes: > > > >> Could you be more specific? > > > > Use the features of emacs, like, say, C-s > > Actually, no. > > The point of unix manual page is that they should be READ! > > You should definitely read the manual page of bash from begin to end. > > I know it's one of the biggest pages, nonetheless, since bash is a > program you're using all the time, you should read its documentation. > > There's no way out. > > > >> On Mon, May 4, 2015 at 3:50 PM, Pascal J. Bourguignon < > pjb@informatimago.com > >>> wrote: > >> > >>> Andrew Pennebaker writes: > >>> > >>> > Help, the first line of my shell-mode has an extra bash-3.2$ prompt > >>> before > >>> > my git prompt. > >>> > > >>> > I tried writing PROMPT_COMMAND=3D in my ~/.bashrc according to an > earlier > >>> > Stack Overflow post, but bash-3.2$ continues to display anyway. > >>> > >>> What about reading man bash? > >>> Stackoverflow will never replace documentation! > >>> Emacs has a couple of nice commands to read unix manual pages. > >>> Try: M-x man RET bash RET > >>> > >>> -- > >>> __Pascal Bourguignon__ http://www.informatimago.com/ > >>> =E2=80=9CThe factory of the future will have only two employees, a ma= n and a > >>> dog. The man will be there to feed the dog. The dog will be there to > >>> keep the man from touching the equipment.=E2=80=9D -- Carl Bass CEO A= utodesk > >>> > > -- > __Pascal Bourguignon__ http://www.informatimago.com/ > =E2=80=9CThe factory of the future will have only two employees, a man an= d a > dog. The man will be there to feed the dog. The dog will be there to > keep the man from touching the equipment.=E2=80=9D -- Carl Bass CEO Autod= esk > --=20 Cheers, Andrew