Hi,
> I worry though that the tool might be test(1). These seem like fairly
> good candidates to add to test, especially dirempty.
Definitely test should have had this functionality.
However people will expect test to behave the same on all systems, so
I'm not sure adding some non-POSIX extensions to test is a good idea.
People will write scripts and use test, and then it won't work on other
systems. If it's another utility, then it will be much more obvious that
the tool might not exist on other systems.
Furthermore some shells (busybox?) might be using a built-in test, and
that wouldn't have this functionality then.
best regards,
Erich Schubert
--
erich@(vitavonni.de|debian.org) -- GPG Key ID: 4B3A135C (o_
A man doesn't know what he knows until he knows what he doesn't know. //\
Man kann sich auch in Gesellschaft anderer einsam fühlen. Weizsäcker V_/_