Simple embedded shell with runtime pluggable commands.

Dependents:   DataBus2018

Implements a simple unix-like shell for embedded systems with a pluggable command architecture.

Revision:
31:27e8130a0d8f
Parent:
30:35522ea06236
Child:
32:fc09f0eb1e8a
--- a/SimpleShell.cpp	Thu Dec 27 15:50:34 2018 +0000
+++ b/SimpleShell.cpp	Fri Dec 28 17:10:31 2018 +0000
@@ -38,6 +38,14 @@
 }
 
 
+bool SimpleShell::haswildcard(char *s) {
+    bool result = \
+        strchr(s, '*') != NULL || strchr(s, '?') != NULL ||
+        (strchr(s, '[') != NULL && strchr(s, ']') != NULL);
+    return result;
+}
+
+
 /// Path stack representation
 typedef std::list<char*> path_t;