Hi, I've just got report there is a way how to crash ksh (2010-10-26):
ksh -c 'typeset -T abc; typeset -T' looking at the backtrace: sh/nvtype.c:1584:sh_outtype(....): > cp = nv_getval(L_ARGNOD); > sfprintf(out,"%.*s",strlen(cp)-1,cp); because there was no assignment abc's value is null and strlen crashes. it seems easy to fix, but I've never used it and even don't know what typeset -T should do? I've tried typeset -T abc=hello; typeset -T which outputs typeset -T abc typeset -T abc=hell) and that did not help to understand it, especially missing last letter and extra parenthesis. So I don't know if it should print both "typeset -T abc" and "typeset -T abc=" or just first one. Michal _______________________________________________ ast-developers mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-developers
