Scripting oddness (sh)

David J. Weller-Fahy dave-lists-freebsd-questions at weller-fahy.com
Wed Mar 23 11:36:52 PST 2005


I've been working on a script, and am having a bit of trouble producing
reasonable output.  First, the script removes all leaf packages that are
not listed in a configuration file and are not required by any of those
packages, or by any package that those packages require, etc.

The problem is that when all currently installed packages are listed as
'do not remove', then the script does not produce the "No packages/ports
to remove." output unless line 58 (the line that consists of the command
'true') is uncommented.  If that line is commented out, or removed, then
no output is produced.

Anyone have any ideas on how to troubleshoot?

Regards,
-- 
dave [ please don't CC me ]


More information about the freebsd-questions mailing list