one more int → bool; mention “set -o sh” may (on raare OSes) be enabled

automatically (and it differs between targets); test MidnightBSD 0.1 ash
compat code and adjust the testsuite so it passes with it enabled
This commit is contained in:
tg
2013-02-19 18:45:22 +00:00
parent dffb1ab915
commit 74e2ef8b0b
5 changed files with 53 additions and 17 deletions

5
lex.c
View File

@@ -23,7 +23,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.181 2013/02/17 06:05:02 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.182 2013/02/19 18:45:20 tg Exp $");
/*
* states while lexing word
@@ -1508,7 +1508,8 @@ set_prompt(int to, Source *s)
static int
dopprompt(const char *cp, int ntruncate, bool doprint)
{
int columns = 0, lines = 0, indelimit = 0;
int columns = 0, lines = 0;
bool indelimit = false;
char delimiter = 0;
/*