From ead340a66039096c7b4bf12dcd65e189769c6653 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Mon, 18 Oct 2021 17:51:11 -0700 Subject: feat(rc): job control prototype working for basic commands --- sys/cmd/rc/var.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/cmd/rc/var.c') diff --git a/sys/cmd/rc/var.c b/sys/cmd/rc/var.c index f0e5f5b..7b5d75a 100644 --- a/sys/cmd/rc/var.c +++ b/sys/cmd/rc/var.c @@ -175,8 +175,8 @@ Var* var(char *name) { Var *v; - if(shell){ - for(v = shell->local; v; v=v->link) + if(proc){ + for(v = proc->local; v; v=v->link) if(strcmp(v->name, name) == 0) return v; } @@ -206,7 +206,7 @@ mkenv(void) nchr+=strlen(a->str)+1; \ } - for(v= shell->local; v; v=v->link){ + for(v= proc->local; v; v=v->link){ BODY } for(h=globals; h!=arrend(globals); h++){ @@ -238,7 +238,7 @@ mkenv(void) *p++='\0'; \ } - for(v=shell->local; v; v=v->link){ + for(v=proc->local; v; v=v->link){ BODY } for(h=globals; h!=arrend(globals); h++){ -- cgit v1.2.1