Hi,
I would report (and correct) an invalid usage statement of file(1).
$ file
usage: file [-bchiLsW] [file ...]
$ man file | grep -A1 'SY'
SYNOPSIS
file [-bchiLsW] file ...
As at least one argument is mandatory, removing the [] would make sens.
Thanks.
--
Sébastien Marie
Index: file.c
===================================================================
RCS file: /cvs/src/usr.bin/file/file.c,v
retrieving revision 1.32
diff -u -p -r1.32 file.c
--- file.c 24 Apr 2015 17:34:57 -0000 1.32
+++ file.c 28 May 2015 17:30:09 -0000
@@ -85,7 +85,7 @@ static struct option longopts[] = {
__dead void
usage(void)
{
- fprintf(stderr, "usage: %s [-bchiLsW] [file ...]\n", __progname);
+ fprintf(stderr, "usage: %s [-bchiLsW] file ...\n", __progname);
exit(1);
}