From owner-svn-src-head@FreeBSD.ORG Wed Jul 7 21:49:13 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99398106566B; Wed, 7 Jul 2010 21:49:13 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 168298FC13; Wed, 7 Jul 2010 21:49:12 +0000 (UTC) Received: by qyk30 with SMTP id 30so3258001qyk.13 for ; Wed, 07 Jul 2010 14:49:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=VgXAjkRDhuzVUu9VvdDJaSJYy02GiX0CuxHT00deHQY=; b=diSpm+g77tvsK0F7IlT1+4J4qV8E5lN9U7JgZBpBTnxgDLHYilZZxpGHwK6h8be/rn C0Z+w5cpX6QAOtwTEQyWPHuWz7Fm3IIqZus+nhcKWzI3pyRKQRXm6/9G4tD2GraLQnRt kqtFm3khUHgNLXBVkWEbsKHt20cVTl9e43RNo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=F2vsNyDAzin/49q63Y5gcRaFQwezCJ9RV0mx49Yu0IKlaTD/ARIgr+YWiWXvp65Dn8 mLi41AtuUYbGsRs40FnU1ZWt/pkDUlImLOTMuNcvkko5fU+O7/bt8YtKXqqW6XtGznE0 BkVMPfBozwZmSEg6pHawaChRzKlWQWnV9Ix4A= MIME-Version: 1.0 Received: by 10.224.60.205 with SMTP id q13mr2839729qah.336.1278539349619; Wed, 07 Jul 2010 14:49:09 -0700 (PDT) Received: by 10.229.192.201 with HTTP; Wed, 7 Jul 2010 14:49:09 -0700 (PDT) In-Reply-To: <86zky3897m.fsf@gmail.com> References: <201007071744.o67Hi9IU059462@svn.freebsd.org> <4C34BDF7.1020201__3943.14767695523$1278525000$gmane$org@FreeBSD.org> <86zky3897m.fsf@gmail.com> Date: Wed, 7 Jul 2010 14:49:09 -0700 Message-ID: From: Garrett Cooper To: Anonymous Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, Doug Barton , src-committers@freebsd.org, Benedict Reuschling Subject: Re: svn commit: r209772 - head/usr.bin/getopt X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jul 2010 21:49:13 -0000 On Wed, Jul 7, 2010 at 10:58 AM, Anonymous wrote: > Doug Barton writes: > >> On 7/7/2010 10:44 AM, Benedict Reuschling wrote: >>> Author: bcr (doc committer) >> >>> -for i >>> +while true; >>> =A0do >> >> If this is intended to be an sh scripting example a better way to write >> that is: >> >> while : ; >> >> You can't guarantee that "true" will always be available and do what you >> expect, whereas the ':' operator is a shell builtin. > > Isn't `true' shell builtin as well? > > =A0$ type true > =A0true is a shell builtin `true' is the new way. `:' is the old Bourne way as I've been told (but you're right, it is a built-in now as of at least 7.1 -- not sure about 6.x though)... -Garrett