Sujet : Re: Loops (was Re: do { quit; } else { })
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.lang.cDate : 21. Apr 2025, 23:14:44
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vu6g0l$35618$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 21.04.2025 23:21, Keith Thompson wrote:
[...]
C-style for loops have been used successfully for decades, and have
been adopted by other languages (including bash, which isn't
particularly C-like).
I have to disagree on that. First I'm positive that Bash adopted
the Ksh loops (but incompletely!), and not the "C" loops.
And, as opposed to Ksh (and "C"), Bash doesn't support FP valued
loops.
(As previously said, Unix shell in general and Bash specifically
is not a good comparison WRT "C" loops.)
Janis