Skip to contentSkip to conversation

historic syntax for loop body

DISCUSSION Sven Mascheck 2 participants 2 messages Oct 8, 2008 – Oct 17, 2008

lore
Share & tools
lore
#0 lore raw

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.

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)

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.

Sven

#1 lore raw
Quoted 3 lines · Sven Mascheck

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.

Quoted 3 lines

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.

Quoted 4 lines

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,

Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt