community.mongodb icon indicating copy to clipboard operation
community.mongodb copied to clipboard

Fix transparent page grep

Open 4SH-gaupee opened this issue 2 months ago • 2 comments

SUMMARY

"[" char should be escaped in the grep command or else it will print every char even when transparent page is set to always:

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

community.mongodb.mongodb_linux

ADDITIONAL INFORMATION

Content of test file

$ cat /tmp/never 
[always] never
$ grep -o '[never]' /tmp/never 
n
e
v
e
r
$ grep -o '\[never\]' /tmp/never
$

4SH-gaupee avatar Apr 18 '24 09:04 4SH-gaupee