From patchwork Wed Jun 14 20:48:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Durigan Junior X-Patchwork-Id: 21028 Received: (qmail 121773 invoked by alias); 14 Jun 2017 20:48:48 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 121729 invoked by uid 89); 14 Jun 2017 20:48:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=cancel X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 14 Jun 2017 20:48:46 +0000 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5E46B81252; Wed, 14 Jun 2017 20:48:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 5E46B81252 Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=sergiodj@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 5E46B81252 Received: from psique.yyz.redhat.com (unused-10-15-17-193.yyz.redhat.com [10.15.17.193]) by smtp.corp.redhat.com (Postfix) with ESMTP id F3EF960F85; Wed, 14 Jun 2017 20:48:42 +0000 (UTC) From: Sergio Durigan Junior To: GDB Patches Cc: Eli Zaretskii , Sergio Durigan Junior Subject: [PATCH] PR gdb/21574: Mention $SHELL and startup-with-shell on "help run" Date: Wed, 14 Jun 2017 16:48:36 -0400 Message-Id: <20170614204836.15123-1-sergiodj@redhat.com> X-IsSubscribed: yes This simple patch updates the documentation of "help run" in order to mention that the shell used to start the inferior comes from the $SHELL environment variable. It also mentions that this behaviour can be disabled by using the "set startup-with-shell off" command. OK? gdb/ChangeLog: yyyy-mm-dd Sergio Durigan Junior PR gdb/21574 * infcmd.c (_initialize_infcmd): Expand "help run" documentation to mention $SHELL and startup-with-shell. --- gdb/infcmd.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gdb/infcmd.c b/gdb/infcmd.c index db09f19..0b2d96c 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -3400,13 +3400,16 @@ Specifying -a and an ignore count simultaneously is an error.")); c = add_com ("run", class_run, run_command, _("\ Start debugged program. You may specify arguments to give it.\n\ -Args may include \"*\", or \"[...]\"; they are expanded using \"sh\".\n\ -Input and output redirection with \">\", \"<\", or \">>\" are also \ -allowed.\n\n\ +Args may include \"*\", or \"[...]\"; they are expanded using the\n\ +shell that will start the program (see the \"$SHELL\"\ +environment\nvariable). Input and output redirection with \">\",\ +\"<\", or \">>\"\nare also allowed.\n\n\ With no arguments, uses arguments last specified (with \"run\" \ or \"set args\").\n\ To cancel previous arguments and run with no arguments,\n\ -use \"set args\" without arguments.")); +use \"set args\" without arguments.\n\ +To start the inferior without using a shell, use \"set \ +startup-with-shell off\".")); set_cmd_completer (c, filename_completer); add_com_alias ("r", "run", class_run, 1);