Computational complexity of rm & ls

Marco Zagha marcoz at MARCOZ.BOLTZ.CS.CMU.EDU
Sat Mar 11 05:02:07 AEST 1989


In article <9000012 at m.cs.uiuc.edu>, wsmith at m.cs.uiuc.edu writes:
> [...]   "rm *" seems to be a common
> enough idiom that rm could be optimized to handle that case better.

Don't forget that the shell expands the "*", not rm.  All rm sees
is a huge argv with one name for every file (except .* files).

== Marco (marcoz at cs.cmu.edu)


-- 



More information about the Comp.unix.questions mailing list