From da77d3be2eb0785bc0c0b60c686e163d6243c744 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Thu, 21 Oct 2021 13:28:25 -0700 Subject: feat(rc): added andand and oror operators --- sys/cmd/rc/lex.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/cmd/rc/lex.c') diff --git a/sys/cmd/rc/lex.c b/sys/cmd/rc/lex.c index 5de238e..6065981 100644 --- a/sys/cmd/rc/lex.c +++ b/sys/cmd/rc/lex.c @@ -242,6 +242,10 @@ yylex(void) case '&': lexer.haddollar = 0; + if(nextis('&')){ + put2('&','&'); + return Tandand; + } put1('&'); return '&'; -- cgit v1.2.1