* Copyright (c) 1990 The Regents of the University of California.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)oldsyntax.c 5.2 (Berkeley) %G%";
* move the path names to the beginning of the argv array, and return
* a pointer to them. The old find syntax assumes all command arguments
* up to the first one beginning with a '-', '(' or '!' are pathnames.
* find first '-', '(' or '!' to delimit paths; if no paths, it's
* an error. Shift the array back one at the same time, creating
* a separate array of pathnames.
for (argv
= *argvp
+ 1;; ++argv
) {
if (!*argv
|| **argv
== '-' || **argv
== '!' || **argv
== '(')
*argvp
= argv
; /* move argv value */