Deutsch English Français Italiano |
<vu6ga6$35e9p$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com> Newsgroups: comp.lang.c Subject: Re: Loops (was Re: do { quit; } else { }) Date: Tue, 22 Apr 2025 00:19:50 +0200 Organization: A noiseless patient Spider Lines: 24 Message-ID: <vu6ga6$35e9p$1@dont-email.me> References: <vspbjh$8dvd$1@dont-email.me> <vti2ki$g23v$1@dont-email.me> <vtin99$vu24$1@dont-email.me> <vtiuf0$18au8$1@dont-email.me> <vtj97r$1i3v3$1@dont-email.me> <vtl166$36p6b$1@dont-email.me> <vtlcg0$3f46a$2@dont-email.me> <vtnekn$1fogv$1@dont-email.me> <vto2mb$20c4n$1@dont-email.me> <vtu4i5$3hteg$1@dont-email.me> <vtujko$3uida$1@dont-email.me> <hxOMP.335104$j2D.272394@fx09.iad> <20250419092849.652@kylheku.com> <vu0t5m$22rjp$1@dont-email.me> <vu0v2n$22n7b$4@dont-email.me> <vu4cp5$3aou8$1@paganini.bofh.team> <vu5ems$230jl$4@dont-email.me> <87o6wp1a91.fsf@nosuchdomain.example.com> <vu6g0l$35618$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Tue, 22 Apr 2025 00:19:51 +0200 (CEST) Injection-Info: dont-email.me; posting-host="3e165276604fd4caffdc154247e30f50"; logging-data="3324217"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18DIqgG068FQPqNPDDsw+at" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:viqM+lb7er1mnaM8v5OVp0Zd4z8= In-Reply-To: <vu6g0l$35618$1@dont-email.me> Bytes: 2447 On 22.04.2025 00:14, Janis Papanagnou wrote: > 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. Ah, I forgot; but Bash seems to support comma-subexpressions in loops (as opposed to Ksh). - So this is even more valid (given all the inconsistencies and differences across shells and "C"): > (As previously said, Unix shell in general and Bash specifically > is not a good comparison WRT "C" loops.) > > Janis >