From owner-svn-src-all@freebsd.org Mon Dec 7 18:48:03 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BFB369B972D; Mon, 7 Dec 2015 18:48:03 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-io0-x235.google.com (mail-io0-x235.google.com [IPv6:2607:f8b0:4001:c06::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 91CEE1CD1; Mon, 7 Dec 2015 18:48:03 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by iofh3 with SMTP id h3so191324756iof.3; Mon, 07 Dec 2015 10:48:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=I12JHOlOnAPFQq73G5pegKX3LBAyHzkVxzawrhDdMpo=; b=AtPcxrmq66AlZTgKOx64dtRVxbQ9hXElmkG8V7Y4PV8NqjFyGLt1QB9GUvcQbnGMck AkexoUrkVAkiuItkOsq9mUZ/ugEcrE2wd67DzpBUlfulQKBx1n+dRgmBhNzAmey8o7Zb lB9rfivfgldI8fw+CM6iaQknbocCLVgM8m5I433wsJwfCeogALS+69o4fBh4G4WwQJox QLtV+/0r3OZEMBs4vSSNM2ydWusBsGTpiEBctBlBW4efDZPhPcUAFQ++jrcnMwkBAS8u OaxdDzTWV2YKnISSRkTE7BlociuRUZb5DUUnqomUU8Gwwgf7RCZaPbxR82A+pGOuUuhP lHiQ== X-Received: by 10.107.166.15 with SMTP id p15mr24576563ioe.38.1449514083054; Mon, 07 Dec 2015 10:48:03 -0800 (PST) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.169.85 with HTTP; Mon, 7 Dec 2015 10:47:43 -0800 (PST) In-Reply-To: <1449512013.1358.6.camel@freebsd.org> References: <201512071024.tB7AOcjr094296@repo.freebsd.org> <1449512013.1358.6.camel@freebsd.org> From: Ed Maste Date: Mon, 7 Dec 2015 13:47:43 -0500 X-Google-Sender-Auth: MNXYKRSIvso1XDKwX6OcFTiGp7E Message-ID: Subject: Re: svn commit: r291929 - head/tools/tools/nanobsd To: Ian Lepore Cc: Warner Losh , "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Dec 2015 18:48:03 -0000 On 7 December 2015 at 13:13, Ian Lepore wrote: > > While I am generally a quoting fanatic and would much rather overquote > than underquote in shell scripts, fyi it's not actually needed for the > -n and -z tests. test(1) and shells seem to be smart enough to see the > ']' (which is just an arg to test, not shell language syntax) and know > there isn't a string in front of it. With sh(1) I see: $ [ -n ] && echo true true $ [ -z ] && echo true true