• fix wtf(1) by keeping the paren in ${foo#\(} properly escaped in COMSUB
• merge tputS and wdstrip_internal ⇒ net save: 604 .text 0 .data 0 .bss (MirBSD/i386)
This commit is contained in:
4
syn.c
4
syn.c
@@ -22,7 +22,7 @@
|
||||
|
||||
#include "sh.h"
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/syn.c,v 1.61 2011/04/22 12:15:42 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/syn.c,v 1.62 2011/05/02 22:52:53 tg Exp $");
|
||||
|
||||
extern short subshell_nesting_level;
|
||||
|
||||
@@ -629,7 +629,7 @@ function_body(char *name,
|
||||
struct op *t;
|
||||
bool old_func_parse;
|
||||
|
||||
sname = wdstrip(name, false, false);
|
||||
sname = wdstrip(name, 0);
|
||||
/*-
|
||||
* Check for valid characters in name. POSIX and AT&T ksh93 say
|
||||
* only allow [a-zA-Z_0-9] but this allows more as old pdkshs
|
||||
|
Reference in New Issue
Block a user