[gnu.bash.bug] SVr3.2.1 chokes on long string constants

lyndon@cs.AthabascaU.CA (Lyndon Nerenberg) (11/16/89)

When compiling 1.04 under SVr3.2.1 on a 3b2/600, cc dies in
builtins.c. The error messages are:

builtins.c: 290: token too long
builtins.c: 341: token too long

Both of these lines are inside of some rather long string
constants in the internal help messages. I can't think of
an immediate solution other than changing the format of the
structs in question to make the help text a null terminated
sequence of individual lines within the struct. Something like:

struct builtin {

	char *name;
	Function *function;
	int enabled;
	char *short_doc;
	char *long_doc[];
} = {

"foo", foo, 1, "short desc",
	"line 1 of long desc",
	"line 2 of long desc",
	(char *)0;		/* end of text flag */
}

which breaks everything if these have to be copied around, although
I doubt that's the case.

-- 
Lyndon Nerenberg  VE6BBM / Computing Services / Athabasca University
  {alberta,decwrl,lsuc}!atha!lyndon || lyndon@cs.AthabascaU.CA

                  The Connector is the Notwork.