public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] PR gdb/21574: Mention $SHELL and startup-with-shell on "help run"
@ 2017-06-14 20:48 Sergio Durigan Junior
  2017-06-15  2:34 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Sergio Durigan Junior @ 2017-06-14 20:48 UTC (permalink / raw)
  To: GDB Patches; +Cc: Eli Zaretskii, Sergio Durigan Junior

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  <sergiodj@redhat.com>

	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);
 
-- 
2.9.3

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] PR gdb/21574: Mention $SHELL and startup-with-shell on "help run"
  2017-06-14 20:48 [PATCH] PR gdb/21574: Mention $SHELL and startup-with-shell on "help run" Sergio Durigan Junior
@ 2017-06-15  2:34 ` Eli Zaretskii
  2017-06-15  2:46   ` Sergio Durigan Junior
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2017-06-15  2:34 UTC (permalink / raw)
  To: Sergio Durigan Junior; +Cc: gdb-patches

> From: Sergio Durigan Junior <sergiodj@redhat.com>
> Cc: Eli Zaretskii <eliz@gnu.org>,
> 	Sergio Durigan Junior <sergiodj@redhat.com>
> Date: Wed, 14 Jun 2017 16:48:36 -0400
> 
> 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?

Yes, but instead of 'see the "$SHELL" environment variable', I'd
suggest to say 'specified by the "$SHELL" environment variable'.

Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] PR gdb/21574: Mention $SHELL and startup-with-shell on "help run"
  2017-06-15  2:34 ` Eli Zaretskii
@ 2017-06-15  2:46   ` Sergio Durigan Junior
  0 siblings, 0 replies; 3+ messages in thread
From: Sergio Durigan Junior @ 2017-06-15  2:46 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: gdb-patches

On Wednesday, June 14 2017, Eli Zaretskii wrote:

>> From: Sergio Durigan Junior <sergiodj@redhat.com>
>> Cc: Eli Zaretskii <eliz@gnu.org>,
>> 	Sergio Durigan Junior <sergiodj@redhat.com>
>> Date: Wed, 14 Jun 2017 16:48:36 -0400
>> 
>> 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?
>
> Yes, but instead of 'see the "$SHELL" environment variable', I'd
> suggest to say 'specified by the "$SHELL" environment variable'.

That's better indeed.

Pushed with this change.

45159d6ad394fe7db840b2b92eaa69508b8a8fe7

Thanks,

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
http://sergiodj.net/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-06-15  2:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-14 20:48 [PATCH] PR gdb/21574: Mention $SHELL and startup-with-shell on "help run" Sergio Durigan Junior
2017-06-15  2:34 ` Eli Zaretskii
2017-06-15  2:46   ` Sergio Durigan Junior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).