[Bug 10526] New: env: invalid number 'VAR' error when using `env -u VAR`

bugzilla at busybox.net bugzilla at busybox.net
Tue Nov 28 00:22:22 UTC 2017


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

            Bug ID: 10526
           Summary: env: invalid number 'VAR' error when using `env -u
                    VAR`
           Product: Busybox
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at busybox.net
          Reporter: osm0sis at outlook.com
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

This occurs with `env -u VAR` and `env -u VAR=val`, but interestingly `env
VAR=val`, `env -`, `env -i` and `env` all seem to work fine.

I have tested this going back several busybox versions (1.20.2 - 1.27.2), on my
own and other public arm+arm64 Android builds as well as the official arm and
i686 builds
(https://busybox.net/downloads/binaries/1.26.2-defconfig-multiarch/) using my
phone and my Ubuntu VM, respectively.

My attempts to debug it have only led to dead ends so far, including trying
swapping out the putenv for the commented unsetenv with no luck, but I do know
that toybox env -u does work on Android and uses putenv and unsetenv, so it
should be possible on that platform and this just seems to be a larger busybox
issue overall, independent of platform/architecture.

Let me know if there's anything else I can provide to help debug or fix it.

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


More information about the busybox-cvs mailing list