[Bug 12226] New: sed captures more characters than intended

bugzilla at busybox.net bugzilla at busybox.net
Tue Sep 17 16:21:32 UTC 2019


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

            Bug ID: 12226
           Summary: sed captures more characters than intended
           Product: Busybox
           Version: 1.31.x
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at busybox.net
          Reporter: yogo.1212 at gmail.com
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

Created attachment 8251
  --> https://bugs.busybox.net/attachment.cgi?id=8251&action=edit
requested config file

Hi.
I'm using Busybox with OpenWRT.
This error was present since at least may this year, likely earlier.

$ echo "8.8.8.8 via 192.168.0.1 dev br-private src 192.168.0.32 uid 0"| sed -nE
's/^.*dev\s*([^\s]*)*.*$/\1/p'
 br-private

The problem is the blank before the interface name.

With GNU sed, the line functions correctly.

warm wishes

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


More information about the busybox-cvs mailing list