I thought of making COMSUB pass a pointer to the struct op *t->left around

instead, but the parser for the so-called “backticks” (U+0060) still emits
plaintext COMSUB wdstrings, and the evaluation code emits plaintext if the
code is not run (‘-n’ option), so it’s not worth the effort and memory ma-
nagement issues, even though it _would_ optimise the most common case…

Bump version numbers, sync regression tests; add one testcase from the old
webpages too. Sync manpage, this now works, but keep the workaround in, as
“portability issue” with slightly changed wording.

Also, /bin/sleep must be used in one manpage example if sleep is built in.
This commit is contained in:
tg
2011-03-06 01:50:11 +00:00
parent 25905b91a7
commit c995f7ca98
3 changed files with 48 additions and 42 deletions

4
sh.h
View File

@ -154,9 +154,9 @@
#endif
#ifdef EXTERN
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.436 2011/03/06 01:25:33 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.437 2011/03/06 01:50:11 tg Exp $");
#endif
#define MKSH_VERSION "R39 2011/02/18"
#define MKSH_VERSION "R39 2011/03/05"
#ifndef MKSH_INCLUDES_ONLY