Date: Thu, 08 Jul 2010 03:01:39 +0400 From: Anonymous <swell.k@gmail.com> To: Garrett Cooper <yanefbsd@gmail.com> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, Doug Barton <dougb@freebsd.org>, src-committers@freebsd.org, Benedict Reuschling <bcr@freebsd.org> Subject: Re: svn commit: r209772 - head/usr.bin/getopt Message-ID: <861vbe28x8.fsf@gmail.com> In-Reply-To: <AANLkTimCpgzZ2lx0nONpvlWK09GCSqWpcKYlqsyQWVIR@mail.gmail.com> (Garrett Cooper's message of "Wed, 7 Jul 2010 14:49:09 -0700") References: <201007071744.o67Hi9IU059462@svn.freebsd.org> <4C34BDF7.1020201__3943.14767695523$1278525000$gmane$org@FreeBSD.org> <86zky3897m.fsf@gmail.com> <AANLkTimCpgzZ2lx0nONpvlWK09GCSqWpcKYlqsyQWVIR@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Garrett Cooper <yanefbsd@gmail.com> writes: > On Wed, Jul 7, 2010 at 10:58 AM, Anonymous <swell.k@gmail.com> wrote: >> Doug Barton <dougb@FreeBSD.org> writes: >> >>> On 7/7/2010 10:44 AM, Benedict Reuschling wrote: >>>> Author: bcr (doc committer) >>> >>>> -for i >>>> +while true; >>>> =C2=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? >> >> =C2=A0$ type true >> =C2=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)... I see `true' uncommented in builtins.def going all the way back to Ash as it was posted on Usenet in 1989.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?861vbe28x8.fsf>