]> git.ipfire.org Git - thirdparty/util-linux.git/commit
whereis: filter bin, man and src differently
authorSamanta Navarro <ferivoz@riseup.net>
Wed, 4 Nov 2020 11:38:00 +0000 (11:38 +0000)
committerSamanta Navarro <ferivoz@riseup.net>
Wed, 4 Nov 2020 11:43:09 +0000 (11:43 +0000)
commit653f672ab61346fea2ec10d3706f0e3e9e8f51de
tree259bd07be0b2a426f1f9fe82925bc7e1409e27d8
parent117ddbeedc02bfc93f6776ca27c3a5501bd718e5
whereis: filter bin, man and src differently

Consider "s." prefixes for source code files only (even though I do not
know which VCS does that), compression suffixes for manual pages and
strict matching for executables.

Calling "whereis python3" is kind of okay to return python3.8 next to
python3, but python3.8-config is not the same tool as python3.

Signed-off-by: Samanta Navarro <ferivoz@riseup.net>
misc-utils/whereis.c