Deutsch English Français Italiano |
<87bjwa9p0d.fsf@nosuchdomain.example.com> 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: Keith Thompson <Keith.S.Thompson+u@gmail.com> Newsgroups: comp.unix.shell Subject: Re: Iterating over a set in bash Date: Mon, 13 Jan 2025 17:13:06 -0800 Organization: None to speak of Lines: 12 Message-ID: <87bjwa9p0d.fsf@nosuchdomain.example.com> References: <vlsqmt$fem4$1@dont-email.me> <vm0ela$15i9h$1@dont-email.me> <vm0inq$2st9j$1@news.xmission.com> <vm0no6$17127$1@dont-email.me> <vm1v8a$2tk9v$1@news.xmission.com> <vm3tmq$20qtd$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Tue, 14 Jan 2025 02:13:07 +0100 (CET) Injection-Info: dont-email.me; posting-host="b949980cf0e823ed5c5fd65edca1d2ec"; logging-data="2230601"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18lSjEuM+OhfghUA3Jo7W2D" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:VZA0fyEoKKylhOzoHXDLYoNEqfA= sha1:pdxIMHptyv65c+zGMku5BsdM+nk= Bytes: 1518 Lem Novantotto <Lem@none.invalid> writes: [...] > $ while true; do echo yes; done |while read $w; do echo "$w and no"; done "while true; do echo yes; done" can be equivalently written as "yes yes". The "yes" command prints its arguments repeatedly. With no argument, it prints "y" repeatedly. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */