From owner-freebsd-questions@FreeBSD.ORG Thu Jun 24 11:15:51 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 084EE106566B for ; Thu, 24 Jun 2010 11:15:51 +0000 (UTC) (envelope-from fwd@gothschlampen.com) Received: from vs.gothschlampen.com (vs.gothschlampen.com [85.93.11.85]) by mx1.freebsd.org (Postfix) with ESMTP id C32FC8FC1F for ; Thu, 24 Jun 2010 11:15:50 +0000 (UTC) Received: by vs.gothschlampen.com (Postfix, from userid 667) id 23A011D32F8; Thu, 24 Jun 2010 13:15:29 +0200 (CEST) Date: Thu, 24 Jun 2010 13:15:29 +0200 From: Thomas To: Aiza Message-ID: <20100624111529.GA30312@gothschlampen.com> References: <4C22B3D7.6070102@comclark.com> <20100624013755.GA5009@gothschlampen.com> <4C22C816.3000105@comclark.com> <4C22E4A0.1040206@comclark.com> <20100624103113.GA27123@gothschlampen.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100624103113.GA27123@gothschlampen.com> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: questions@freebsd.org Subject: Re: .sh check for numeric content X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jun 2010 11:15:51 -0000 On Thu, Jun 24, 2010 at 12:31:13PM +0200, Thomas wrote: Hello, > Even if "[" at first glance seems like a special syntax of the shell, > it really is just an alternative name or way of calling test(1): > > $ ls -l $(which test [) > -rwxr-xr-x 1 root root 42584 2009-10-06 13:07 /usr/bin/[ > -rwxr-xr-x 1 root root 30284 2009-10-06 13:07 /usr/bin/test I just noticed how this snippet doesn't prove my point very well :) Hope this did not confuse you too much, just ignore the ls part. >From now on I'll refrain from posting until I've had my coffee and am fully awake.. Regards, Thomas