[BusyBox 0006174]: env -u does not bind variable (mismatch with coreutils)
bugs at busybox.net
bugs at busybox.net
Wed Nov 12 22:22:04 UTC 2008
The following issue has been CLOSED
======================================================================
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: closed
Resolution: open
Fixed in Version:
======================================================================
Date Submitted: 11-11-2008 12:38 PST
Last Modified: 11-12-2008 14:22 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
----------------------------------------------------------------------
vda - 11-12-08 14:22
----------------------------------------------------------------------
Fixed in svn.
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
11-12-08 14:22 vda Status assigned => closed
11-12-08 14:22 vda Note Added: 0015644
======================================================================
More information about the busybox-cvs
mailing list