lsof returns incorrect informations with '--' option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lsof (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
When a command like this is run:
$> lsof -n -P -i -- /dev/null
a list of open files relative to sockets and /dev/null files should be displayed together. In that case I get only the output relative to "-n -P -i".
The lsof's version on repository is quite "old", 4.81. Please update it.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: lsof 4.81.dfsg.1-1build1
ProcVersionSign
Uname: Linux 3.0.0-12-
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Tue Dec 27 21:58:48 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: lsof
UpgradeStatus: Upgraded to oneiric on 2011-09-15 (103 days ago)
summary: |
- lsof returns uncorrect informations with '--' option + lsof returns incorrect informations with '--' option |
Hi slamdunk,
I believe the problem here is that your '-i' is expected to be followed with a value, and the -i is consuming the --; but I agree this is a bug.