On Wed, Jul 7, 2010 at 10:58 AM, Anonymous <swel...@gmail.com> wrote:
> Doug Barton <do...@freebsd.org> writes:
>
>> On 7/7/2010 10:44 AM, Benedict Reuschling wrote:
>>> Author: bcr (doc committer)
>>
>>> -for i
>>> +while true;
>>>  do
>>
>> 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?
>
>  $ type true
>  true 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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to