Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Apr 1997 14:23:27 +0200 (MET DST)
From:      Zahemszky Gabor <zgabor@CoDe.hu>
To:        freebsd-questions@freebsd.org (FreeBSD questions)
Cc:        un_x@anchorage.net
Subject:   Re: do done
Message-ID:  <199704251223.OAA00259@CoDe.hu>
In-Reply-To: <Pine.BSF.3.95q.970424192301.1998A-100000@aak.anchorage.net> from Steve Howe at "Apr 24, 97 07:28:50 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> why is it that "do" and "done" may only be replaced by "{ }" in "for-in"
> commands, but not "while/until" commands? (sh)

Compatibility with old sh's.  It would be better not to use {}, because it's
a non-documented feature of the original sh, so your script won't be
portable.

Gabor



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704251223.OAA00259>