"use" only have char linebuf[100]

[QNX 6.2]
“use” command seems to have only 100 byte linebuffer, so
having a long usemsg line can have line chopped.
(Will garble output if chopped in middle of control codes…)

Ofcourse usually you won’t go beyond 80,
but embedding control chars (may or may not be recommended; dunno)
could easily go over 100 bytes.

Is this BUFSIZE increased for recent release?

“exploit” below…

kabe

#if shell
cc $0
use ./a.out
exit
#endif

static const char _usage[] attribute((section(“QNX_usage”),unused)) =
“%C - use test 100\n”
“0…1…2…3…4…5…”
“6…7…8…9.2345678.10.345678.11.3456789\n”
“”;

#include <stdio.h>
int main(){fputs(_usage,stdout);}