🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by duketrt Tue, 06 Jan 1981 22:01
du bug
#5
Author: duketrt
Date: Tue, 06 Jan 1981 22:01
13 lines
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 ...
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads