* src/nproc.c (main): Error if any non option parameters.
* NEWS: Mention the change in behavior.
"Too many levels of symbolic links" diagnostic.
[bug introduced in coreutils-8.6]
+** Changes in behavior
+
+ nproc now diagnoses with an error, non option command line parameters.
+
** Improvements
stat and tail work better with ZFS and VZFS. stat -f --format=%T now
#include "system.h"
#include "error.h"
#include "nproc.h"
+#include "quote.h"
#include "xstrtol.h"
/* The official name of this program (e.g., no 'g' prefix). */
}
}
+ if (argc != optind)
+ {
+ error (0, 0, _("extra operand %s"), quote (argv[optind]));
+ usage (EXIT_FAILURE);
+ }
+
nproc = num_processors (mode);
if (ignore < nproc)