Summary: | apropos(1) should use regular expression by default for a keyword search | ||
---|---|---|---|
Product: | Base System | Reporter: | Wolfram Schneider <wosch> |
Component: | bin | Assignee: | Yuri Pankov <yuripv> |
Status: | In Progress --- | ||
Severity: | Affects Only Me | CC: | emaste, pstef, yuripv |
Priority: | --- | ||
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any |
Description
Wolfram Schneider
2017-11-09 10:46:14 UTC
This may be no longer true. I get the same number of results for both '.' and '~.' (9072). (In reply to Piotr Pawel Stefaniak from comment #1) I get the same number of results for both '.' and '~.' too now. $ apropos '.'|wc -l 9517 $ apropos '~.'|wc -l 9517 However, the result number on FreeBSD 14.0-CURRENT are still weird. # case sensitive regex $ apropos '~f.*bar' | wc -l 4 # case insensitive regex $ apropos 'f.*bar' | wc -l 5 # regex by grep $ apropos . | grep 'f.*bar' | wc -l 7 $ apropos . | grep -i 'f.*bar' | wc -l 8 On centos8 it looks better: $ apropos 'f.*bar' | wc -l 10 $ apropos . | egrep -i 'f.*bar' |wc -l 10 |