From owner-freebsd-questions@FreeBSD.ORG Mon Jul 29 18:00:04 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 97611F9D for ; Mon, 29 Jul 2013 18:00:04 +0000 (UTC) (envelope-from steve@sohara.org) Received: from uk1rly2283.eechost.net (relay01a.mail.uk1.eechost.net [217.69.40.75]) by mx1.freebsd.org (Postfix) with ESMTP id 6063925CE for ; Mon, 29 Jul 2013 18:00:03 +0000 (UTC) Received: from [31.186.37.179] (helo=smtp.marelmo.com) by uk1rly2283.eechost.net with esmtpa (Exim 4.72) (envelope-from ) id 1V3rVR-0000kk-Jd for freebsd-questions@freebsd.org; Mon, 29 Jul 2013 18:45:13 +0100 Received: from [192.168.63.1] (helo=steve.marelmo.com) by smtp.marelmo.com with smtp (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1V3rW8-00061R-MP for freebsd-questions@freebsd.org; Mon, 29 Jul 2013 17:45:56 +0000 Date: Mon, 29 Jul 2013 18:45:56 +0100 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Subject: Re: Unusual file: /bin/[ Message-Id: <20130729184556.efa39d621af8a4f814dca04a@sohara.org> In-Reply-To: <51F671E6.7070708@cordula.ws> References: <51F66D34.8010803@ifdnrg.com> <51F671E6.7070708@cordula.ws> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.19; amd64-portbld-freebsd9.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Auth-Info: 15567@permanet.ie (plain) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jul 2013 18:00:04 -0000 On Mon, 29 Jul 2013 15:45:10 +0200 cpghost wrote: > On 07/29/13 15:25, Paul Macdonald wrote: > > Hi, I spotted what i'd call an unusual file in the basejail on a jail > > install, and have since seen this on other non jailed boxes. > > > > -r-xr-xr-x 2 root wheel 11488 Jun 10 12:19 [ > > That's a perfectly valid UNIX program used in > (bourne) shell programming. It has been part of > BSD Unix for ages. And I really mean AGES! I recall someone deciding that /bin/[ looked iffy and deleted it from a FreeBSD 1.1.5.1 box busy serving connections to a bunch of dial up users. An amazing number of things stopped working. -- Steve O'Hara-Smith