Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Keith Thompson 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: 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 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 */