Jason Reiss / tinyshell

Fork of tinyshell by Murilo Pontes

Revision:
2:c57737fee604
Parent:
1:71580bf962fe
Child:
3:d027360b1892
--- a/tinysh.c	Tue Mar 11 05:19:36 2014 +0000
+++ b/tinysh.c	Sat Dec 23 19:25:32 2017 +0000
@@ -38,7 +38,6 @@
 #define TOPCHAR '/'
 #endif
 
-
 typedef unsigned char uchar;
 /* redefine some useful and maybe missing utilities to avoid conflicts */
 #define strlen tinysh_strlen
@@ -236,7 +235,7 @@
           if(cmd)
             {
               if(!cmd->child) /* no sub-command, execute */
-                {
+                {                  
                   exec_command(cmd,str);
                   return 0;
                 }
@@ -272,8 +271,10 @@
           puts("\r\n");
           return 0;
         }
-      else /* NULLMATCH */
+      else { /* NULLMATCH */
+        puts("\r\n");
         return 0;
+      }
     }
 }