From 6d50d5b97d49a74a8faf587ec2bbf234626adf0c Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Tue, 19 Oct 2021 14:16:54 -0700 Subject: Feat(rc): added subshell commands and cd builtin Slowly chipping away at a decent feature list. Subshell commands are executed by @{ ... }. --- sys/cmd/rc/lex.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sys/cmd/rc/lex.c') diff --git a/sys/cmd/rc/lex.c b/sys/cmd/rc/lex.c index 06737ba..4325882 100644 --- a/sys/cmd/rc/lex.c +++ b/sys/cmd/rc/lex.c @@ -191,6 +191,14 @@ yylex(void) put1('&'); return '&'; + case '@': + put1('@'); + return Tsubshell; + + case '!': + put1('!'); + return Tbang; + case '$': if(nextis('#')){ put2('$','#'); -- cgit v1.2.1