allow 'eval break', from Martijn Dekker
also, more string pooling, while here
This commit is contained in:
6
exec.c
6
exec.c
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "sh.h"
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/exec.c,v 1.194 2017/04/02 15:02:40 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/exec.c,v 1.195 2017/04/08 01:07:15 tg Exp $");
|
||||
|
||||
#ifndef MKSH_DEFAULT_EXECSHELL
|
||||
#define MKSH_DEFAULT_EXECSHELL MKSH_UNIXROOT "/bin/sh"
|
||||
@@ -806,7 +806,7 @@ comexec(struct op *t, struct tbl * volatile tp, const char **ap,
|
||||
/* NOTREACHED */
|
||||
default:
|
||||
quitenv(NULL);
|
||||
internal_errorf(Tf_sd, "CFUNC", i);
|
||||
internal_errorf(Tunexpected_type, Tunwind, Tfunction, i);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -1506,7 +1506,7 @@ iosetup(struct ioword *iop, struct tbl *tp)
|
||||
/* herein() may already have printed message */
|
||||
if (u == -1) {
|
||||
u = errno;
|
||||
warningf(true, Tf_cant,
|
||||
warningf(true, Tf_cant_ss_s,
|
||||
iotype == IODUP ? "dup" :
|
||||
(iotype == IOREAD || iotype == IOHERE) ?
|
||||
Topen : Tcreate, cp, cstrerror(u));
|
||||
|
Reference in New Issue
Block a user