Re: historic syntax for loop body

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sven Mascheck <mascheck@xxxxxxxxx> wrote:
> The manpage still documents support for the historic almquist for-loop
> syntax, "do and done may be replaced with { and }".  But it's not
> implemented anymore.

Thanks for noting this error in the manual, I'll correct it.

> I'm curious: when has it been removed?
> (I can't see it in the changelogs, and it seems to have gone between
> ash-0.3.8 and some earlier dash-0.4.x)

It was removed in 0.3.8-1.

> Why am I asking?  I was just curious and I stumbled over this because
> AFAIK dash is the only ash variant (well, except busybox) which has it
> removed; I guess simply due to POSIX, and because it had been everything
> but common usage anyway.

Yes this non-POSIX syntax offered no advantages at all and as such
was removed.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux