1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-23 07:31:31 +00:00
freebsd/usr.bin
Mariusz Zaborski 24c681a7f6 grep: fix combination of quite and count flag
When the quite (-q) flag is provided, we don't expect any output.
Currently, the behavior is broken:
$ grep -cq flag util.c
1

$ grep -cs flag util.c
55

First of all, we print a number to stdout. Secondly, it just returns
0 or 1 (which is unexpected). GNU grep with c and q flags doesn't
print anything.

Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D31108
2021-07-09 14:09:14 +02:00
..
addr2line
alias
apply
ar Fix some common typos in comments 2021-03-13 18:26:15 +01:00
asa
at at(1): Markup environment variables with proper macros 2020-07-19 14:42:13 +00:00
atm
awk one-true-awk: import 20210221 (1e4bc42c53a1) which fixes a number of bugs 2021-07-07 19:25:43 -06:00
backlight Improve the wording for showing the brightness level 2021-03-12 09:45:14 -07:00
banner banner: Correct history. 2021-06-21 08:40:54 -06:00
basename basename: fix history 2021-06-21 08:40:54 -06:00
bc
biff
bluetooth
bmake Update to bmake-20210621 2021-06-25 16:02:40 -07:00
brandelf
bsdcat bsdcat,cpio,tar: derive version string from archive.h 2020-12-29 14:21:50 -08:00
bsdiff bsdiff: fix off-by-one error 2020-11-16 18:41:49 +00:00
bzip2
bzip2recover
c89
c99
caesar
calendar usr.bin/calendar: do not treat // in text as comment 2021-06-07 15:55:23 +02:00
cap_mkdb
chat Fix a few mandoc issues 2020-10-09 14:03:45 +00:00
chkey
chpass usr.bin/chpass: Correct manpage regarding path to temp files 2021-05-25 16:23:20 +01:00
cksum
clang Merge llvm-project 12.0.0 release 2021-06-13 22:01:15 +02:00
cmp cmp: fix -s (silent) when used with skip offsets 2021-01-10 19:02:56 -05:00
col col(1): Add EXAMPLES section 2020-10-21 16:30:34 +00:00
colrm colrm.1: Add a missing colon 2020-06-23 10:27:41 +00:00
column
comm comm(1): Add EXAMPLES section 2020-07-27 16:51:23 +00:00
compile_et
compress compress(1): warn about link handling 2021-03-04 14:52:12 +01:00
cpio bsdcat,cpio,tar: derive version string from archive.h 2020-12-29 14:21:50 -08:00
cpuset cpuset(1): Fix a typo 2020-10-10 13:01:04 +00:00
csplit
ctags
ctlstat
cut
cxxfilt
dc
diff usr.bin/diff: fix UBSan error in readhash 2021-07-06 12:16:40 +01:00
diff3
dirname
dpv Fix a few mandoc issues 2020-10-09 19:12:44 +00:00
drill Rename NO_WERROR -> MK_WERROR=no 2021-01-07 09:31:03 +00:00
dtc
du du_test: Skip three tests if sparse files are not supported 2021-02-03 17:06:07 +00:00
ee
elfctl elfctl: avoid touching file if no change made 2021-05-26 10:12:12 -04:00
elfdump
enigma
env env: style(9) fix, add a space 2021-03-03 14:21:56 -06:00
etdump
expand
factor
false
fetch fetch(1): Fix style 2020-10-30 09:48:41 +00:00
file
file2c
find find(1): Document the -f option 2021-05-13 10:10:22 +02:00
finger
fmt Fix some common typos in comments 2021-03-13 18:26:15 +01:00
fold fold(1): Add EXAMPLES section 2020-10-29 18:39:04 +00:00
fortune freebsd-tips: Fix the description of fetch(1) to match the command 2021-07-05 10:14:25 +08:00
from
fstat fstat(1): Add EXAMPLES section 2020-11-19 19:05:16 +00:00
fsync
ftp
gcore gcore: add option to dump core using kernel facility 2021-05-03 19:18:26 +03:00
gencat
getaddrinfo
getconf Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
getent getent(1): Add EXAMPLES section 2020-10-24 16:40:34 +00:00
getopt
gh-bc [bc] Update to version 4.0.0 2021-04-06 11:57:07 +02:00
gprof gprof: Retire a.out support 2020-12-26 11:47:47 -05:00
grdc
grep grep: fix combination of quite and count flag 2021-07-09 14:09:14 +02:00
gzip fts_read: Handle error from a NULL return better. 2020-12-08 23:38:26 +00:00
head
hesinfo
hexdump hexdump(1): Add EXAMPLES section 2020-06-29 15:15:14 +00:00
host
iconv iconv(1): Add EXAMPLE 2020-11-29 18:22:14 +00:00
id id: sanitize arguments better 2021-06-15 06:51:16 -06:00
ident ident(1): Normalizing date format 2020-12-19 12:54:00 +00:00
indent Fix a few mandoc issues 2020-10-09 19:12:44 +00:00
ipcrm
ipcs
iscsictl iscsi.conf(5): Fix a mandoc warning 2020-11-20 16:41:32 +00:00
join join(1): Add EXAMPLES section 2020-06-20 11:27:59 +00:00
jot
kdump kdump: use VIS_NOLOCALE when printing output 2021-06-16 16:28:27 +01:00
keylogin
keylogout
killall killall(1): Clarify -d, -s and -v options 2020-06-27 11:28:11 +00:00
ktrace
ktrdump Fix warning about signed comparison and drop WARNS for ktrdump(8). 2021-03-24 10:51:25 +03:00
kyua Simplify and speed up the kyua build 2021-07-02 09:21:05 +01:00
lam
last last(1): Add EXAMPLES section 2021-01-09 18:37:25 +01:00
lastcomm
ldd Fix ldd to work with more ELF files. 2021-01-29 10:53:50 -08:00
ldd32
leave
less less: upgrade to v581. 2021-04-18 19:46:19 -07:00
lessecho
lesskey
lex usr.bin/lex: regenerate bootstrap files after d37f81e35b 2021-04-21 10:56:29 +01:00
limits limits(1): Add EXAMPLES section 2020-06-25 16:46:27 +00:00
locale
localedef localedef: Fix bootstrapping on Ubuntu 16.04 2021-02-10 16:41:35 +00:00
locate Fix a grammar error on locate(1). 2020-12-11 08:04:54 +00:00
lock lock(1): Add EXAMPLES section 2020-12-11 19:27:21 +00:00
lockf Remove whitespace which accidentaly snuck into r364831. 2020-08-26 19:28:30 +00:00
logger
login usr.bin/login: send errors to console if syslog isn't running 2021-07-06 10:51:16 +01:00
logins
logname
look look(1): Add EXAMPLES section 2020-12-29 21:48:12 +01:00
lorder
lsvfs lsvfs(1): Add EXAMPLES section 2020-12-29 21:35:24 +01:00
lzmainfo
m4 m4(1): Add a SEE ALSO section and reference an AT&T manual 2021-04-08 21:16:54 +02:00
mail Replace literal uses of /usr/local in C sources with _PATH_LOCALBASE 2020-10-27 11:29:11 +00:00
man man(1): Bump .Dd 2021-01-09 18:22:08 +01:00
mandoc Ensure that the makewhatis symlink is added in the bootstrap-tools stage 2020-09-10 15:37:29 +00:00
mesg
minigzip
ministat
mkcsmapper mkcsmapper: Fix UBSan signed shift error 2020-09-21 19:03:17 +00:00
mkcsmapper_static
mkdep
mkesdb
mkesdb_static
mkfifo
mkimg mkimg: Add fat32lba partition type 2021-06-21 21:04:58 -04:00
mkstr
mktemp
mkuzip
morse
msgs
mt Add the LTO-9 density code to libmt and the mt(1) man page. 2020-12-10 21:06:06 +00:00
nc
ncal
ncurses ncurses: Add support for terminfo database 2021-02-25 14:25:11 +01:00
netstat netstat: Fix typo 2021-07-02 08:42:34 +02:00
newgrp
newkey
nfsstat pkgbase: Create a FreeBSD-nfs package 2021-06-19 17:49:50 +02:00
nice
nl
nm
nohup
number
objcopy
ofed ofed: fix the WITH_OFED_EXTRA build 2021-01-29 23:52:13 -06:00
opieinfo
opiekey
opiepasswd
pagesize
pamtest
passwd
paste Fix confusing example in paste(1) 2021-05-31 16:12:44 -06:00
patch usr.bin/patch: remove unneeded header. 2021-05-02 09:27:32 -07:00
pathchk
perror
pom
posixshmcontrol Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
pr
primes
printenv
printf printf(1): Add EXAMPLES section 2020-07-01 16:33:32 +00:00
proccontrol proccontrol(1): implement 'nonewprivs' 2021-07-02 08:50:36 +01:00
procstat procstat: distinguish vm map guards in procstat vm output. 2021-02-14 03:24:58 +02:00
protect Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
quota
random
rctl Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
readelf readelf: Add -z decompression support 2020-10-31 15:27:45 +00:00
renice renice(8): Clarify "who" parameters. 2020-10-27 12:32:17 +00:00
resizewin
rev rev(1): Add EXAMPLES section 2020-06-27 11:19:18 +00:00
revoke
rpcgen
rpcinfo
rs
rup
ruptime
rusers
rwall
rwho
script Add some examples to script.1 2021-01-05 16:32:27 +01:00
sdiff
sdiotool
sed sed(1): Add a reference for a 4.4BSD manual document 2021-04-08 21:07:31 +02:00
seq seq(1): complete EXAMPLES section 2020-06-20 11:24:29 +00:00
shar
showmount
size
smbutil
sockstat sockstat: use cap_pwd 2021-06-18 18:08:30 +02:00
soelim
sort usr.bin/sort: Avoid UBSan errors 2021-07-06 10:51:05 +01:00
split
ssh-copy-id
stat
stdbuf
strings
su
systat Clean up copyright messages. 2021-05-10 23:14:35 -07:00
tabs
tail tail: fix "tail -F" file rotation detection 2021-02-01 16:21:14 -08:00
talk
tar bsdcat,cpio,tar: derive version string from archive.h 2020-12-29 14:21:50 -08:00
tcopy
tee tee.1: Add a missing article 2020-06-23 10:22:58 +00:00
telnet
tests
tftp Fix a few mandoc issues 2020-10-09 14:03:45 +00:00
time time(1): Add EXAMPLES section 2020-07-07 16:07:39 +00:00
timeout sys/*/conf/*, docs: fix links to handbook 2021-05-20 09:27:10 +01:00
tip tip: Fix pointer-vs-integer confusion 2021-06-08 18:30:59 +01:00
top top(1): support command name and argument grepping 2021-06-29 17:51:18 -06:00
touch
tr
true
truncate truncate(1): Add EXAMPLES section 2020-07-27 15:25:04 +00:00
truss truss: minor cleanup and pedantic warning fixes 2021-06-16 16:35:55 +01:00
tsort tsort(1): Add EXAMPLES section 2020-08-30 17:37:56 +00:00
tty
ul ul(1): Remove references to colcrt(1) and nroff(1) 2020-10-07 14:43:16 +00:00
uname uname(1): Fix a typo in the man page date 2020-12-19 12:55:27 +00:00
unexpand
unifdef
uniq
units
unvis
unzip unzip: Sync with NetBSD upstream. 2021-01-02 10:50:08 +09:00
usbhidaction Correct USB HID item in examples 2020-10-28 08:29:31 +00:00
usbhidctl
users Only set WARNS if not defined 2020-09-11 13:28:37 +00:00
uudecode
uuencode
vacation
vgrind
vi import nvi 2.2.0-3bbdfe4 2021-05-21 22:51:21 +02:00
vis
vmstat vmstat: correct history 2021-06-21 08:40:54 -06:00
vtfontcvt Document automatic handling of font height for BDF files 2020-08-02 16:41:36 +00:00
w w(1): Add EXAMPLES to man page 2020-08-24 17:57:08 +00:00
wall
wc
what
whereis
which Fix typo and environment variable macro 2020-09-24 16:42:17 +00:00
who who(1): Add EXAMPLES section 2020-08-30 17:40:59 +00:00
whois whois: Handle referrals to rwhois servers. 2020-07-09 17:27:14 +00:00
write
xargs xargs: compile yesexpr as ERE 2020-12-12 15:38:32 +00:00
xinstall install(1): Avoid unncessary fstatfs() calls and use mmap() based on size 2020-10-14 12:28:41 +00:00
xo
xohtml
xolint
xopo
xstr
xz
xzdec
yacc MFV: r362513 2020-07-14 01:54:24 +00:00
yes
ypcat
ypmatch
ypwhich
zstd Only set WARNS if not defined 2020-09-11 13:28:37 +00:00
Makefile Revert "Remove lib/kyua from the build" 2021-07-02 10:17:03 +01:00
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.inc build: provide a default WARNS for all in-tree builds 2020-09-18 17:17:46 +00:00
Makefile.powerpc