Patch: make "!" a command unconditionally

Tom Tromey tromey@cygnus.com
Mon Feb 28 12:59:00 GMT 2000


I'd like "!" to be an unconditional alias for "shell".
Here is a patch.

2000-02-28  Tom Tromey  <tromey@cygnus.com>

        * command.c (_initialize_command): Make "!" alias
        unconditionally.

Tom

Index: command.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/command.c,v
retrieving revision 1.65
diff -u -r1.65 command.c
--- command.c	2000/02/09 08:53:11	1.65
+++ command.c	2000/02/28 20:57:08
@@ -1678,8 +1678,7 @@
 	   "Execute the rest of the line as a shell command.  \n\
 With no arguments, run an inferior shell.");
 
-  if (xdb_commands)
-    add_com_alias ("!", "shell", class_support, 0);
+  add_com_alias ("!", "shell", class_support, 0);
 
   add_com ("make", class_support, make_command,
        "Run the ``make'' program using the rest of the line as arguments.");


More information about the Gdb-patches mailing list