From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 19:36:52 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2037F16A4CE for ; Wed, 23 Mar 2005 19:36:52 +0000 (GMT) Received: from weller-fahy.com (pD9501F69.dip.t-dialin.net [217.80.31.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9B6143D3F for ; Wed, 23 Mar 2005 19:36:50 +0000 (GMT) (envelope-from dave-lists-freebsd-questions@weller-fahy.com) Received: (qmail 75085 invoked by uid 1001); 23 Mar 2005 19:36:48 -0000 Date: Wed, 23 Mar 2005 20:36:48 +0100 From: "David J. Weller-Fahy" To: freebsd-questions@freebsd.org Message-ID: <20050323193626.GH7474@weller-fahy.com> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-URL-Me: http://weller-fahy.com X-Accept-Language: en X-Location: Germany, Gangelt, Hof Grootfeld User-Agent: Mutt/1.5.9i Subject: Scripting oddness (sh) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2005 19:36:52 -0000 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 ]