{ and } with for in /bin/sh

Doug Gwyn gwyn at smoke.BRL.MIL
Sun Mar 25 09:30:51 AEST 1990


In article <237 at sherpa.UUCP> rac at sherpa.UUCP (Roger Cornelius) writes:
-I recently came across some sh code which uses { and } instead of
-do ... done in a for loop.  I've never seen this documented in any sh
-or ksh man page, so should it therefore be considered non-portable?
-When was this introduced and why isn't it documented?

It IS documented.  So far as I can tell it's supported by all Bourne
shells.



More information about the Comp.unix.questions mailing list