Closed owst closed 1 year ago
When I type out a multi-line command involving a regex \b character, the expansion replaces \b with ^H.
\b
^H
N.b. paste the first line first, then the remaining lines (to simulate typing out the command interactively).
for f in $(grep -l '\bfoo\b' *); do echo "foo found in $f" done
after pressing enter after done the prompt displays
done
for f in $(grep -l '^Hfoo^H' *) do echo "foo found in $f" done
\b to be unchanged
\b was replaced with ^H (which breaks the grep pattern)
grep
6b0e5e6
Thanks @marlonrichert 👍
No problem! 🙂
PS: If you enjoy using my software, please consider sponsoring me. 💝
Describe the bug
When I type out a multi-line command involving a regex
\b
character, the expansion replaces\b
with^H
.Steps To Reproduce
N.b. paste the first line first, then the remaining lines (to simulate typing out the command interactively).
after pressing enter after
done
the prompt displaysExpected behavior
\b
to be unchangedObserved behavior
\b
was replaced with^H
(which breaks thegrep
pattern)Environment:
6b0e5e6