You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Pavel Roskin <pr...@gnu.org> on 2002/09/26 00:07:17 UTC

[PATCH] Unrecognized commands in svnadmin shell

Hello!

This patch makes "svnadmin shell" complain about unrecognized commands.

----------------------------------------------------
Index: subversion/svnadmin/shell.c
===================================================================
--- subversion/svnadmin/shell.c
+++ subversion/svnadmin/shell.c	Wed Sep 25 20:05:00 2002
@@ -430,9 +430,12 @@
 
   else if ((! strcmp(subcommand, "quit"))
            || (! strcmp(subcommand, "exit")))
-    *finished = 1;
-
+    {
+      *finished = 1;
+      return SVN_NO_ERROR;
+    }
 
+  printf ("Unrecognized command \"%s\"\n", subcommand);
   return SVN_NO_ERROR;
 }
 
----------------------------------------------------

Example output after the patch:

<7: />$ ls
  <   1.0.d>  [     7]  0           0    rxvt/
<7: />$ rm -rf rxvt
Unrecognized command "rm"
<7: />$

-- 
Regards,
Pavel Roskin


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] Unrecognized commands in svnadmin shell

Posted by Karl Fogel <kf...@newton.ch.collab.net>.
Pavel Roskin <pr...@gnu.org> writes:
> This patch makes "svnadmin shell" complain about unrecognized commands.

Applied in revision 3498, thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org