add missing shf_flush() before prompting

This commit is contained in:
tg 2011-06-11 03:14:50 +00:00
parent 5aa22cff70
commit 6571d66386
3 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $MirOS: src/bin/mksh/check.t,v 1.465 2011/06/09 21:53:12 tg Exp $ # $MirOS: src/bin/mksh/check.t,v 1.466 2011/06/11 03:14:47 tg Exp $
# $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas Exp $ # $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas Exp $
# $OpenBSD: history.t,v 1.5 2001/01/28 23:04:56 niklas Exp $ # $OpenBSD: history.t,v 1.5 2001/01/28 23:04:56 niklas Exp $
# $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $ # $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $
@ -25,7 +25,7 @@
# http://www.research.att.com/~gsf/public/ifs.sh # http://www.research.att.com/~gsf/public/ifs.sh
expected-stdout: expected-stdout:
@(#)MIRBSD KSH R40 2011/06/05 @(#)MIRBSD KSH R40 2011/06/10
description: description:
Check version of shell. Check version of shell.
stdin: stdin:

View File

@ -38,7 +38,7 @@
#endif #endif
#endif #endif
__RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.188 2011/05/29 05:13:12 tg Exp $"); __RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.189 2011/06/11 03:14:49 tg Exp $");
#if HAVE_KILLPG #if HAVE_KILLPG
/* /*
@ -1858,6 +1858,7 @@ c_read(const char **wp)
* as is indicated in the Korn Shell book). * as is indicated in the Korn Shell book).
*/ */
shf_puts(ccp + 1, shl_out); shf_puts(ccp + 1, shl_out);
shf_flush(shl_out);
} }
} }

4
sh.h
View File

@ -151,9 +151,9 @@
#endif #endif
#ifdef EXTERN #ifdef EXTERN
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.474 2011/06/05 19:58:19 tg Exp $"); __RCSID("$MirOS: src/bin/mksh/sh.h,v 1.475 2011/06/11 03:14:50 tg Exp $");
#endif #endif
#define MKSH_VERSION "R40 2011/06/05" #define MKSH_VERSION "R40 2011/06/10"
#ifndef MKSH_INCLUDES_ONLY #ifndef MKSH_INCLUDES_ONLY