use nicer (and same as in other places!) error message for typeset

This commit is contained in:
tg
2013-03-30 15:39:36 +00:00
parent 57e4c1a19f
commit fc2ec318c1

View File

@ -38,7 +38,7 @@
#endif #endif
#endif #endif
__RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.239 2013/03/24 21:34:13 tg Exp $"); __RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.240 2013/03/30 15:39:36 tg Exp $");
#if HAVE_KILLPG #if HAVE_KILLPG
/* /*
@ -836,7 +836,7 @@ c_typeset(const char **wp)
shf_putc('\n', shl_stdout); shf_putc('\n', shl_stdout);
} }
} else if (!typeset(wp[i], fset, fclr, field, base)) { } else if (!typeset(wp[i], fset, fclr, field, base)) {
bi_errorf("%s: %s", wp[i], "not identifier"); bi_errorf("%s: %s", wp[i], "is not an identifier");
goto errout; goto errout;
} }
} }