freebsd-nq/usr.bin/sort
Kyle Evans 7137597e15 sort(1): Fix -m when only implicit stdin is used for input
Observe:

printf "a\nb\nc\n" > /tmp/foo
# Next command results in no output
cat /tmp/foo | sort -m
# Next command results in proper output
cat /tmp/foo | sort -m -
# Also works:
sort -m /tmp/foo

Some const'ification was done to simplify the actual solution of adding "-"
explicitly to the file list if we didn't have any file arguments left over.

PR:		190099
MFC after:	1 week
2018-06-20 03:31:19 +00:00
..
nls
tests sort(1): Add bits to allow easy checking against NetBSD tests 2018-06-20 03:10:49 +00:00
bwstring.c
bwstring.h
coll.c
coll.h
file.c sort(1): Fix -m when only implicit stdin is used for input 2018-06-20 03:31:19 +00:00
file.h sort(1): Fix -m when only implicit stdin is used for input 2018-06-20 03:31:19 +00:00
Makefile sort(1): Add bits to allow easy checking against NetBSD tests 2018-06-20 03:10:49 +00:00
Makefile.depend
mem.c
mem.h
radixsort.c Fix the WITH_SORT_THREADS build. 2018-02-07 20:36:37 +00:00
radixsort.h
sort.1.in
sort.c sort(1): Fix -m when only implicit stdin is used for input 2018-06-20 03:31:19 +00:00
sort.h
vsort.c
vsort.h