From owner-freebsd-questions Fri Apr 25 07:31:12 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA18720 for questions-outgoing; Fri, 25 Apr 1997 07:31:12 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA18707 for ; Fri, 25 Apr 1997 07:31:09 -0700 (PDT) Received: from mail.EUnet.hu (www.eunet.hu [193.225.28.100]) by who.cdrom.com (8.8.5/8.6.11) with ESMTP id HAA24576 for ; Fri, 25 Apr 1997 07:11:17 -0700 (PDT) Received: by mail.EUnet.hu, id QAA08039; Fri, 25 Apr 1997 16:11:01 +0200 Received: (from zgabor@localhost) by CoDe.hu (8.7.5/8.7.3) id OAA00259; Fri, 25 Apr 1997 14:23:27 +0200 (MET DST) From: Zahemszky Gabor Message-Id: <199704251223.OAA00259@CoDe.hu> Subject: Re: do done To: freebsd-questions@freebsd.org (FreeBSD questions) Date: Fri, 25 Apr 1997 14:23:27 +0200 (MET DST) Cc: un_x@anchorage.net In-Reply-To: from Steve Howe at "Apr 24, 97 07:28:50 pm" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > 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