aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2011-11-15 05:06:35 +0000
committerDoug Evans <dje@google.com>2011-11-15 05:06:35 +0000
commited59ded5ebf4f5eb5014612020c88ebd27f0b819 (patch)
tree364c1a0084e846164c80cd0d339afcb9a5e7e209 /gdb/doc
parent81f5d455defd839446d1f1b51ed84f170b47a5c1 (diff)
downloadgdb-ed59ded5ebf4f5eb5014612020c88ebd27f0b819.zip
gdb-ed59ded5ebf4f5eb5014612020c88ebd27f0b819.tar.gz
gdb-ed59ded5ebf4f5eb5014612020c88ebd27f0b819.tar.bz2
Make "!" an alias for "shell".
* NEWS: Add mention. * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on adding "!" command, always add it. * cli/cli-decode.c (find_command_name_length): Recognize "!" as a command of length one. doc/ * gdb.texinfo (Shell Commands): Document "!". testsuite/ * gdb.base/shell.exp: New file.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog4
-rw-r--r--gdb/doc/gdb.texinfo7
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 02ef07b..15659d6 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,7 @@
+2011-11-14 Doug Evans <dje@google.com>
+
+ * gdb.texinfo (Shell Commands): Document "!".
+
2011-11-14 Stan Shebs <stan@codesourcery.com>
Kwok Cheung Yeung <kcy@codesourcery.com>
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 0cadc96..9255b89 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -1347,9 +1347,12 @@ just use the @code{shell} command.
@table @code
@kindex shell
+@kindex !
@cindex shell escape
-@item shell @var{command string}
-Invoke a standard shell to execute @var{command string}.
+@item shell @var{command-string}
+@itemx !@var{command-string}
+Invoke a standard shell to execute @var{command-string}.
+Note that no space is needed between @code{!} and @var{command-string}.
If it exists, the environment variable @code{SHELL} determines which
shell to run. Otherwise @value{GDBN} uses the default shell
(@file{/bin/sh} on Unix systems, @file{COMMAND.COM} on MS-DOS, etc.).