PR gdb/21574: Mention $SHELL and startup-with-shell on "help run"
authorSergio Durigan Junior <sergiodj@redhat.com>
Wed, 14 Jun 2017 20:45:20 +0000 (16:45 -0400)
committerSergio Durigan Junior <sergiodj@redhat.com>
Thu, 15 Jun 2017 02:44:01 +0000 (22:44 -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.

gdb/ChangeLog:
2017-06-14  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/ChangeLog
gdb/infcmd.c

index a73a033731bded2ce79d1d3977eea4edb3dab30d..4274f3a1b3636d1ffc298283084a58d7b01a4865 100644 (file)
@@ -1,3 +1,9 @@
+2017-06-14  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       PR gdb/21574
+       * infcmd.c (_initialize_infcmd): Expand "help run" documentation
+       to mention $SHELL and startup-with-shell.
+
 2017-06-14  Max Filippov  <jcmvbkbc@gmail.com>
 
        * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
index db09f19699d37cebaf778842be490936a4be49d4..d55163960f2579fe47d45aa876e7e608e9f49e43 100644 (file)
@@ -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 (specified by 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);
 
This page took 0.029536 seconds and 4 git commands to generate.