Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of tinyshell by
Diff: tinysh.c
- 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;
+ }
}
}
