aboutsummaryrefslogtreecommitdiff
path: root/sh.c
diff options
context:
space:
mode:
authorDmitry Chagin <dchagin@FreeBSD.org>2023-01-29 20:46:19 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2023-01-29 20:46:19 +0000
commit143ef44f06822f82a8358d4c02f07102d963fe5f (patch)
treef9080b8a265dd926053ee7ae187e8fa46f3fb5e0 /sh.c
parent174d8b60324d7e8754709f7155e13ca95220b48c (diff)
Diffstat (limited to 'sh.c')
-rw-r--r--sh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sh.c b/sh.c
index 4d3094bde463..390d8915000f 100644
--- a/sh.c
+++ b/sh.c
@@ -565,7 +565,7 @@ main(int argc, char **argv)
sigset_interrupting(SIGALRM, queue_alrmcatch);
- setcopy(STRstatus, STR0, VAR_READWRITE);
+ setstatus(0);
/*
* get and set machine specific environment variables
@@ -886,11 +886,11 @@ main(int argc, char **argv)
fix_version(); /* publish the shell version */
if (argc > 1 && strcmp(argv[1], "--version") == 0) {
- xprintf("%S\n", varval(STRversion));
+ xprintf("%" TCSH_S "\n", varval(STRversion));
xexit(0);
}
if (argc > 1 && strcmp(argv[1], "--help") == 0) {
- xprintf("%S\n\n", varval(STRversion));
+ xprintf("%" TCSH_S "\n\n", varval(STRversion));
xprintf("%s", CGETS(11, 8, HELP_STRING));
xexit(0);
}
@@ -1830,7 +1830,7 @@ exitstat(void)
*/
child = 1;
- xexit(getn(varval(STRstatus)));
+ xexit(getstatus());
}
/*