From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 2 12:29:23 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7DA516A473 for ; Sat, 2 Feb 2008 12:29:23 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 50C8613C4DD for ; Sat, 2 Feb 2008 12:29:23 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 1EAD1208A for ; Sat, 2 Feb 2008 13:29:15 +0100 (CET) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: -0.2/3.0 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on tim.des.no Received: from ds4.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 07BA42088 for ; Sat, 2 Feb 2008 13:29:15 +0100 (CET) Received: by ds4.des.no (Postfix, from userid 1001) id E10788449D; Sat, 2 Feb 2008 13:29:14 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: hackers@freebsd.org References: <86k5lv1l84.fsf@ds4.des.no> <20080201212948.GE1550@roadrunner.spoerlein.net> <863asbpp79.fsf@ds4.des.no> Date: Sat, 02 Feb 2008 13:29:14 +0100 In-Reply-To: <863asbpp79.fsf@ds4.des.no> ("Dag-Erling =?utf-8?Q?Sm=C3=B8rg?= =?utf-8?Q?rav=22's?= message of "Sat\, 02 Feb 2008 12\:34\:02 +0100") Message-ID: <86myqjo82t.fsf@ds4.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: 'periodic daily' memory usage X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Feb 2008 12:29:23 -0000 Dag-Erling Sm=C3=B8rgrav writes: > Ulrich Spoerlein writes: > > Since $MP might be empty (think NFS_ROOT or CD9660_ROOT) you'd still > > need the [ -n "$MP" ] check, AFAICS. > Correct, and thanks for noticing. ...although I ended up borrowing a trick commonly used with grep, which is to add /dev/null to the argument list, so it doesn't matter in $MP is empty. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no