Article View: NET.v7bugs
Article #5du bug
From: duketrt
Date: Tue, 06 Jan 1981 22:01
Date: Tue, 06 Jan 1981 22:01
13 lines
789 bytes
789 bytes
"du" works incorrectly if given a list of pathnames
in which a relative pathname (one not beginning with '/')
follows a pathname containing a '/':
cd /; du usr/tmp etc
The reason is that in such cases "du" uses chdir()
to leave the current directory, never to return.
One cure is for "du" to invoke "pwd" initially
to be able to get back to the current directory ("find" does that).
Also, if there is more than one pathname argument
there should be a grand total at the end -- it is often what is wanted.
The documented non-directory argument bug should be fixed, too.
And the diagnostic messages are not so hot either ...
Technical Details
Message-ID:
<anews.Aduke.583>Path:
arc1-ca.pugleaf.net!utzoo!duke!trtShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!duke!trt From: duke!trt Newsgroups: NET.v7bugs Subject: du bug Date: Tue, 06 Jan 1981 22:01:40 +0000 Message-ID: <anews.Aduke.583>