look(1): add compability with other implementations.
On other implementations 'look -a' uses an alternate dictionary. Since we don't have one, just ignore it.
This commit is contained in:
parent
015ac42e4b
commit
b245fc98c8
@ -103,6 +103,10 @@ in comparisons when the
|
||||
option was specified.
|
||||
This was incorrect and the current man page matches the historic
|
||||
implementation.
|
||||
.Pp
|
||||
The
|
||||
.Fl a
|
||||
flag is ignored for compability.
|
||||
.Sh SEE ALSO
|
||||
.Xr grep 1 ,
|
||||
.Xr sort 1
|
||||
|
@ -102,8 +102,11 @@ main(int argc, char *argv[])
|
||||
|
||||
file = _path_words;
|
||||
termchar = L'\0';
|
||||
while ((ch = getopt(argc, argv, "dft:")) != -1)
|
||||
while ((ch = getopt(argc, argv, "adft:")) != -1)
|
||||
switch(ch) {
|
||||
case 'a':
|
||||
/* COMPATIBILITY */
|
||||
break;
|
||||
case 'd':
|
||||
dflag = 1;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user