[Bug 12226] sed captures more characters than intended

bugzilla at busybox.net bugzilla at busybox.net
Sat Dec 28 13:22:17 UTC 2019


https://bugs.busybox.net/show_bug.cgi?id=12226

--- Comment #1 from Leon George <yogo12.12 at gmail.com> ---
Oops. Forgot i did this..
Here's another:

ip rule list | sed -nE 's/^.*iif\s*([^\s]*).*lookup\s*2.*$/\1/p' | grep '\-n_'
| hexdump -C
00000000  62 72 2d 6e 5f 37 33 34  20 0a                    |br-n_734 .|
0000000a

echo '2:      from all iif br-n_734 lookup 2' | sed -nE
's/^.*iif\s*([^\s]*).*lookup\s*2.*$/\1/p' | grep '\-n_'

this time it spits out a space at the end.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list