Commit a5c13a5
committed
Fix pattern for matching /etc/hosts entries (3.2)
`grep -w` matches also `string1-whatsoever` so that entries like
```
192.168.0.10 anystring anystring-apache
192.168.0.11 anystring-tomcat
```
matched 3 entries over 2 lines.
This PR fixes #2937 for 3.2 by improving the pattern, so that `string1` needs a trailing whitespace or an EOL -- besides a leading whitespace..1 parent 6bb51ab commit a5c13a5
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21886 | 21886 | | |
21887 | 21887 | | |
21888 | 21888 | | |
| 21889 | + | |
21889 | 21890 | | |
21890 | 21891 | | |
21891 | 21892 | | |
21892 | 21893 | | |
21893 | 21894 | | |
21894 | | - | |
21895 | | - | |
| 21895 | + | |
| 21896 | + | |
21896 | 21897 | | |
21897 | 21898 | | |
21898 | 21899 | | |
21899 | 21900 | | |
21900 | 21901 | | |
21901 | 21902 | | |
| 21903 | + | |
21902 | 21904 | | |
21903 | 21905 | | |
21904 | 21906 | | |
21905 | 21907 | | |
21906 | | - | |
| 21908 | + | |
| 21909 | + | |
21907 | 21910 | | |
21908 | 21911 | | |
21909 | 21912 | | |
| |||
0 commit comments