diff --git a/src/cmd/ksh93/sh/subshell.c b/src/cmd/ksh93/sh/subshell.c index 0de8fe914..03a920132 100644 --- a/src/cmd/ksh93/sh/subshell.c +++ b/src/cmd/ksh93/sh/subshell.c @@ -75,11 +75,11 @@ static struct subshell struct Error_context_s *errcontext; Shopt_t options;/* save shell options */ pid_t subpid; /* child process id */ - Sfio_t* saveout;/*saved standard output */ + Sfio_t* saveout;/* saved standard output */ char *pwd; /* present working directory */ const char *shpwd; /* saved pointer to sh.pwd */ void *jobs; /* save job info */ - int pwdfd; /* file descritor for pwd */ + int pwdfd; /* file descriptor for PWD */ mode_t mask; /* saved umask */ short tmpfd; /* saved tmp file descriptor */ short pipefd; /* read fd if pipe is created */ diff --git a/src/cmd/ksh93/tests/heredoc.sh b/src/cmd/ksh93/tests/heredoc.sh index 985a5c756..87fbd161b 100755 --- a/src/cmd/ksh93/tests/heredoc.sh +++ b/src/cmd/ksh93/tests/heredoc.sh @@ -175,7 +175,7 @@ cat > "$f" <<- '!!!!' !!!! chmod 755 "$f" if [[ $($SHELL "$f") != abc ]] -then err_exit 'here document descritor was closed' +then err_exit 'here document descriptor was closed' fi cat > "$f" <<- '!!!!' exec 0<&-