+ paths = argv;
+ ftsoptions = FTS_NOSTAT|FTS_PHYSICAL;
+
+ /*
+ * if arguments start with an option, treat it like new syntax;
+ * otherwise, if has a "-option" anywhere (which isn't an argument
+ * to another command) treat it as old syntax.
+ */
+ if (argv[1][0] != '-')
+ for (p = argv + 1; *p; ++p) {
+ if (!strcmp(*p, "exec") || !strcmp(*p, "ok")) {
+ while (p[1] && strcmp(*++p, ";"));
+ continue;
+ }
+ if (**p == '-') {
+ deprecated = 1;
+ oldsyntax(&argv);
+ break;
+ }
+ }
+ if (!deprecated)
+ newsyntax(argc, &argv);
+