[BusyBox 0006174]: env -u does not bind variable (mismatch with coreutils)
bugs at busybox.net
bugs at busybox.net
Tue Nov 11 21:33:02 UTC 2008
A NOTE has been added to this issue.
======================================================================
http://busybox.net/bugs/view.php?id=6174
======================================================================
Reported By: pgbovine
Assigned To: BusyBox
======================================================================
Project: BusyBox
Issue ID: 6174
Category: Standards Compliance
Reproducibility: always
Severity: major
Priority: normal
Status: assigned
======================================================================
Date Submitted: 11-11-2008 12:38 PST
Last Modified: 11-11-2008 13:33 PST
======================================================================
Summary: env -u does not bind variable (mismatch with
coreutils)
Description:
The -u option to env is supposed to remove a variable from the given
environment, but if -u is invoked along with a parameter that contains an
equals sign, then coreutils actually binds that variable (or re-binds it
if it's already bound), but busybox does NOT bind the variable.
Coreutils behavior:
$ env -ux=5 | grep '^x='
x=5
$ env -iux=5
x=5
$ env -uUSER=redefined_username | grep '^USER'
USER=redefined_username
Busybox behavior:
$ ./busybox env -ux=5 | grep '^x='
$ ./busybox env -iux=5
$ ./busybox env -uUSER=redefined_username | grep '^USER'
USER=pgbovine
Notice that x was not bound, and moreover, that my username (pgbovine) was
not re-bound.
(Note that the -i option will execute a command in a fresh blank
environment, which makes differences more salient.)
======================================================================
----------------------------------------------------------------------
vda - 11-11-08 13:33
----------------------------------------------------------------------
Try attached 7.patch
Issue History
Date Modified Username Field Change
======================================================================
11-11-08 12:38 pgbovine New Issue
11-11-08 12:38 pgbovine Status new => assigned
11-11-08 12:38 pgbovine Assigned To => BusyBox
11-11-08 13:32 vda File Added: 7.patch
11-11-08 13:33 vda Note Added: 0015434
======================================================================
More information about the busybox-cvs
mailing list