diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-10-18 17:51:11 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-10-18 17:51:11 -0700 |
commit | ead340a66039096c7b4bf12dcd65e189769c6653 (patch) | |
tree | 732594824f3e7951eecf0180792db2d24ff6d13e /sys/cmd/rc/var.c | |
parent | bf03074e346b004659196b6c17eee04dbffd3ac2 (diff) |
feat(rc): job control prototype working for basic commands
Diffstat (limited to 'sys/cmd/rc/var.c')
-rw-r--r-- | sys/cmd/rc/var.c | 8 |
1 files changed, 4 insertions, 4 deletions
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++){ |