From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14348 invoked by alias); 5 Nov 2013 17:46:40 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 14320 invoked by uid 89); 5 Nov 2013 17:46:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RDNS_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from Unknown (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 05 Nov 2013 17:46:34 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rA5HkOMn013129 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 5 Nov 2013 12:46:25 -0500 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id rA5HkM5h013434; Tue, 5 Nov 2013 12:46:23 -0500 Message-ID: <52792EEE.7060902@redhat.com> Date: Tue, 05 Nov 2013 17:56:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Eli Zaretskii CC: gdb-patches@sourceware.org Subject: Re: [PATCH] [DOC] shell startup files, clarifications and fixes. References: <1382532024-28890-1-git-send-email-palves@redhat.com> <5267E1ED.7070205@redhat.com> <526A51CD.8090802@redhat.com> In-Reply-To: <526A51CD.8090802@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-11/txt/msg00082.txt.bz2 Hi Eli, I notice I had forgotten to CC you on this patch, and since it's buried in another thread, it most likely fell through the cracks. Do you think it's OK? -- Pedro Alves On 10/25/2013 12:11 PM, Pedro Alves wrote: > On 10/23/2013 03:49 PM, Pedro Alves wrote: >> >> @emph{Warning:} On Unix systems, @value{GDBN} runs your program using >> the shell indicated >> by your @code{SHELL} environment variable if it exists (or >> @code{/bin/sh} if not). If your @code{SHELL} variable names a shell >> that runs an initialization file---such as @file{.cshrc} for C-shell, or >> @file{.bashrc} for BASH---any variables you set in that file affect >> your program. You may wish to move setting of environment variables to >> files that are only run when you sign on, such as @file{.login} or >> @file{.profile}. >> >> So that's wrong too. I'll fix it as a follow up if the change below >> is OK. > > Like so. OK? > > ------- > Subject: [DOC] shell startup files, clarifications and fixes. > > When Bash is started non-interactively, it runs the script pointed by > the BASH_ENV environment variable, not .bashrc. While at it, mention > Z shell in the warning too, and mention non-interactive mode > explicitly. > > gdb/doc/ > 2013-10-25 Pedro Alves > > * gdb.texinfo (Starting) : Mention > non-interactive mode. > (Environment) : Mention > non-interactive mode. Mention .zshenv for Z shell, and talk about > BASH_ENV instead of .bashrc for BASH. > --- > gdb/doc/gdb.texinfo | 24 +++++++++++++----------- > 1 file changed, 13 insertions(+), 11 deletions(-) > > diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo > index 32516ae..d6b29d1 100644 > --- a/gdb/doc/gdb.texinfo > +++ b/gdb/doc/gdb.texinfo > @@ -2139,9 +2139,10 @@ During startup program terminated with signal SIGSEGV, Segmentation fault. > @noindent > which indicates the shell or the wrapper specified with > @samp{exec-wrapper} crashed, not your program. Most often, this is > -caused by something odd in your shell's initialization file---such as > -@file{.cshrc} for C-shell, $@file{.zshenv} for the Z shell, or the > -file specified in the @samp{BASH_ENV} environment variable for BASH. > +caused by something odd in your shell's non-interactive mode > +initialization file---such as @file{.cshrc} for C-shell, > +$@file{.zshenv} for the Z shell, or the file specified in the > +@samp{BASH_ENV} environment variable for BASH. > > @kindex set disable-randomization > @item set disable-randomization > @@ -2305,14 +2306,15 @@ rather than assigning it an empty value. > @end table > > @emph{Warning:} On Unix systems, @value{GDBN} runs your program using > -the shell indicated > -by your @code{SHELL} environment variable if it exists (or > -@code{/bin/sh} if not). If your @code{SHELL} variable names a shell > -that runs an initialization file---such as @file{.cshrc} for C-shell, or > -@file{.bashrc} for BASH---any variables you set in that file affect > -your program. You may wish to move setting of environment variables to > -files that are only run when you sign on, such as @file{.login} or > -@file{.profile}. > +the shell indicated by your @code{SHELL} environment variable if it > +exists (or @code{/bin/sh} if not). If your @code{SHELL} variable > +names a shell that runs an initialization file when started > +non-interactively---such as @file{.cshrc} for C-shell, $@file{.zshenv} > +for the Z shell, or the file specified in the @samp{BASH_ENV} > +environment variable for BASH---any variables you set in that file > +affect your program. You may wish to move setting of environment > +variables to files that are only run when you sign on, such as > +@file{.login} or @file{.profile}. > > @node Working Directory > @section Your Program's Working Directory >