Initial revision

This commit is contained in:
tg
2004-12-10 18:12:29 +00:00
parent 8a1afa6087
commit 7920708324
68 changed files with 248 additions and 121 deletions

6
lex.c
View File

@@ -1,4 +1,4 @@
/** $MirBSD: lex.c,v 1.8 2004/12/10 22:21:25 tg Exp $ */
/** $MirBSD: src/bin/ksh/lex.c,v 1.1 2004/12/10 18:08:08 tg Exp $ */
/* $OpenBSD: lex.c,v 1.18 2003/08/06 21:08:05 millert Exp $ */
/*
@@ -8,7 +8,7 @@
#include "sh.h"
#include <ctype.h>
__RCSID("$MirBSD: lex.c,v 1.8 2004/12/10 22:21:25 tg Exp $");
__RCSID("$MirBSD: src/bin/ksh/lex.c,v 1.1 2004/12/10 18:08:08 tg Exp $");
/* Structure to keep track of the lexing state and the various pieces of info
* needed for each particular state.
@@ -1140,7 +1140,7 @@ set_prompt(int to, Source *s)
} else
prompt = str_save(substitute(ps1, 0),
saved_atemp);
quitenv(NULL);
quitenv();
}
#else /* KSH */
prompt = str_val(global("PS1"));