Commit da8a6f2
committed
Fix pattern for matching /etc/hosts entries
`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 by improving the match pattern, so that
`string1` needs a trailing whitespace or a EOL -- besides a
leaing whitespace.1 parent c19d3ff commit da8a6f2
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22206 | 22206 | | |
22207 | 22207 | | |
22208 | 22208 | | |
| 22209 | + | |
22209 | 22210 | | |
22210 | 22211 | | |
22211 | 22212 | | |
22212 | 22213 | | |
22213 | 22214 | | |
22214 | | - | |
22215 | | - | |
| 22215 | + | |
| 22216 | + | |
22216 | 22217 | | |
22217 | 22218 | | |
22218 | 22219 | | |
22219 | 22220 | | |
22220 | 22221 | | |
22221 | 22222 | | |
| 22223 | + | |
22222 | 22224 | | |
22223 | 22225 | | |
22224 | 22226 | | |
22225 | 22227 | | |
22226 | | - | |
| 22228 | + | |
| 22229 | + | |
22227 | 22230 | | |
22228 | 22231 | | |
22229 | 22232 | | |
| |||
0 commit comments