[Bug 3091] New: Nonportable tool usage in scripts

bugzilla at busybox.net bugzilla at busybox.net
Sat Jan 15 23:07:22 UTC 2011


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

           Summary: Nonportable tool usage in scripts
           Product: Busybox
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Standard Compliance
        AssignedTo: unassigned at busybox.net
        ReportedBy: bugdal at aerifal.cx
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


Created attachment 2845
  --> https://bugs.busybox.net/attachment.cgi?id=2845
Patch to fix the issues

Busybox sed does not seem to support the usage "sed command -- file" that's
used in its own build scripts. "sed -e command -- file" works fine, however.

This makes it impossible to build BB on a BB-hosted system.

Also, the ? character is not special in POSIX BRE, and \? is not a conformant
substitute. The portable solution is to use egrep instead of grep.

This second issue does not necessarily preclude building BB on a BB-hosted
system, but depending on the choice of standard library in use and the
strictness of its regex implementation, it may be a problem.

Attached patch fixes both issues.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list