summaryrefslogtreecommitdiffstats
path: root/misc-utils/look.1
diff options
context:
space:
mode:
authorKarel Zak2016-03-09 15:51:28 +0100
committerKarel Zak2016-03-09 15:51:28 +0100
commit9b480fe67b0641cd8dbb0ef3cedb7c4666f5b209 (patch)
tree2879d6fdc6993de748bb6b39f779556de36ef218 /misc-utils/look.1
parentMerge branch 'test-fixes' of https://github.com/rudimeier/util-linux (diff)
downloadkernel-qcow2-util-linux-9b480fe67b0641cd8dbb0ef3cedb7c4666f5b209.tar.gz
kernel-qcow2-util-linux-9b480fe67b0641cd8dbb0ef3cedb7c4666f5b209.tar.xz
kernel-qcow2-util-linux-9b480fe67b0641cd8dbb0ef3cedb7c4666f5b209.zip
look: consider blanks as directory characters
This change introduces regression, but it seems better than to be incompatible with "sort -d" if we assume that "sort -d" is the right way how to prepare files for look(1). It seems (from man page) that the original goal has been compatibility with sort -d, but this feature has never been fully implemented. Addresses: https://github.com/karelzak/util-linux/issues/284 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/look.1')
-rw-r--r--misc-utils/look.116
1 files changed, 8 insertions, 8 deletions
diff --git a/misc-utils/look.1 b/misc-utils/look.1
index e96a4318d..4de5f0ed7 100644
--- a/misc-utils/look.1
+++ b/misc-utils/look.1
@@ -68,12 +68,16 @@ alphabetic characters is ignored.
Use the alternative dictionary file.
.TP
.BR \-d , " \-\-alphanum"
-Use normal dictionary character set and order, i.e. only alphanumeric characters
-are compared. (This is on by default if no file is specified.)
+Use normal dictionary character set and order, i.e. only blanks and
+alphanumeric characters are compared. This is on by default if no file is
+specified.
+
+Note that blanks have been added to dictionary character set for
+compatibility with \fBsort \-d\fR command since version 2.28.
.TP
.BR \-f , " \-\-ignore\-case"
-Ignore the case of alphabetic characters. (This is on by default if no file is
-specified.)
+Ignore the case of alphabetic characters. This is on by default if no file is
+specified.
.TP
.BR \-t , " \-\-terminate " \fIcharacter\fR
Specify a string termination character, i.e. only the characters
@@ -105,10 +109,6 @@ the alternative dictionary
.SH "SEE ALSO"
.BR grep (1),
.BR sort (1)
-.SH COMPATIBILITY
-The original manual page stated that tabs and blank characters participated
-in comparisons when the \fB\-\-alphanum\fR option was specified. This was
-incorrect, and the current man page matches the historic implementation.
.SH HISTORY
The
.B look