diff --git a/sh.h b/sh.h index 2c3de4e..f5a4ac1 100644 --- a/sh.h +++ b/sh.h @@ -175,7 +175,7 @@ #endif #ifdef EXTERN -__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.758 2016/01/21 18:24:43 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.759 2016/01/21 19:38:09 tg Exp $"); #endif #define MKSH_VERSION "R52 2016/01/21" @@ -867,7 +867,12 @@ EXTERN const char T_function[] E_INIT(" function"); EXTERN const char T_funny_command[] E_INIT("funny $() command"); #define Tcommand (T_funny_command + 10) /* "command" */ EXTERN const char Tfg_badsubst[] E_INIT("fileglob: bad substitution"); +#if defined(__GNUC__) +/* trust this to have string pooling; -Wformat bitches otherwise */ +#define Tbadsubst "bad substitution" +#else #define Tbadsubst (Tfg_badsubst + 10) /* "bad substitution" */ +#endif EXTERN const char Tmissinghere[] E_INIT("missing here document"); #define Theredoc (Tmissinghere + 8) /* "here document" */ EXTERN const char TC_LEX1[] E_INIT("|&;<>() \t\n");