From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 2 06:37:03 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4866B106566B for ; Fri, 2 Mar 2012 06:37:03 +0000 (UTC) (envelope-from jhellenthal@dataix.net) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0C4288FC0C for ; Fri, 2 Mar 2012 06:37:02 +0000 (UTC) Received: by iahk25 with SMTP id k25so2412307iah.13 for ; Thu, 01 Mar 2012 22:37:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataix.net; s=rsa; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; bh=Z56JCdi4jNVdVC8DVl5lb8wJ3M3Y/6v6qr5SfF9ZBHQ=; b=X+Qw1j8tMQCLlnkcsIwccIGwTYYw3vwCVY227QOEstZ0lYo2ftIgdRifTcKkGoh+Bz k5/P5/abbnlz8uLkEKgkaPXX6gLJ0IbadK9jYuOmGzyZ5srzZ6Fazldd62k9rHEEJxn0 cdomCDWgHrmn/vc5eoufqZO2Zywqpqjwj9NFA= Received: by 10.50.190.167 with SMTP id gr7mr561682igc.53.1330670222476; Thu, 01 Mar 2012 22:37:02 -0800 (PST) Received: from DataIX.net (adsl-99-181-142-81.dsl.klmzmi.sbcglobal.net. [99.181.142.81]) by mx.google.com with ESMTPS id b6sm994015igj.7.2012.03.01.22.37.01 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 Mar 2012 22:37:01 -0800 (PST) Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.5/8.14.5) with ESMTP id q226axNJ035838 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 2 Mar 2012 01:36:59 -0500 (EST) (envelope-from jhellenthal@DataIX.net) Received: (from jhellenthal@localhost) by DataIX.net (8.14.5/8.14.5/Submit) id q226axe3035547; Fri, 2 Mar 2012 01:36:59 -0500 (EST) (envelope-from jhellenthal@DataIX.net) Date: Fri, 2 Mar 2012 01:36:59 -0500 From: Jason Hellenthal To: Alexander Best Message-ID: <20120302063659.GB31588@DataIX.net> References: <20120301233822.GA19709@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120301233822.GA19709@freebsd.org> X-Gm-Message-State: ALoCoQn9gcJYdkzEGYPKTUW9+WI6USdrxpRfoqptARVy9VE41oUZDYTGDLmlokJBUE7vEUj7IjV5 Cc: freebsd-hackers@freebsd.org Subject: Re: small change to du, so it will accepts unit suffixes for negative thresholds 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: Fri, 02 Mar 2012 06:37:03 -0000 On Thu, Mar 01, 2012 at 11:38:22PM +0000, Alexander Best wrote: > hi there, > > i just noticed that du will not accepts something like the following: > > du -t-500M > > whereas > > du -t500M > > will work. i've attached a patch, which makes unit suffixes in connection with > negative thresholds possible. > I don't get it. I just ran both instances of what you have above without your patch on 8-STABLE i386 and both work as intended. Are you seeing something I am not ? -- ;s =;