aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/rc/simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cmd/rc/simple.c')
-rw-r--r--sys/cmd/rc/simple.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/cmd/rc/simple.c b/sys/cmd/rc/simple.c
new file mode 100644
index 0000000..f934aa1
--- /dev/null
+++ b/sys/cmd/rc/simple.c
@@ -0,0 +1,13 @@
+void
+Xsimple(void)
+{
+ Word *a;
+ Var *v;
+
+ a = shell->stack->words;
+ if (!a) {
+ Xerror("empty argument list");
+ return;
+ }
+ v = vlookup(a->word);
+}