* file named AUTHORS, in the root directory of this distribution.
*/
/*
- * $Id: token.c,v 1.22.8.3.2.2 2005/09/30 19:13:36 martinea Exp $
+ * $Id: token.c,v 1.29 2006/01/14 04:37:19 paddy_s Exp $
*
* token bashing routines
*/
/* Format the token */
arglist_start(argp, format);
- ap_vsnprintf(linebuf, sizeof(linebuf), format, argp);
+ vsnprintf(linebuf, sizeof(linebuf), format, argp);
arglist_end(argp);
return quote(" ", linebuf);
/* Format the token */
arglist_start(argp, format);
- ap_vsnprintf(linebuf, sizeof(linebuf), format, argp);
+ vsnprintf(linebuf, sizeof(linebuf), format, argp);
arglist_end(argp);
return quote(sep, linebuf);
return buf;
}
-#endif /* HAVE_SHQUOTE */
+#endif
/* Table lookup.
*/
set_pname("token test");
+ /* Don't die when child closes pipe */
+ signal(SIGPIPE, SIG_IGN);
+
erroutput_type = ERR_INTERACTIVE;
printf("Testing split() with \" \" token separator\n");