Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou Newsgroups: comp.unix.shell Subject: Re: Different variable assignments Date: Sat, 19 Oct 2024 14:25:14 +0200 Organization: A noiseless patient Spider Lines: 26 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Sat, 19 Oct 2024 14:25:22 +0200 (CEST) Injection-Info: dont-email.me; posting-host="f0860b4b4247e4e0a1ca74c8e135d78d"; logging-data="4078766"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lnCfu62whOGuKV2J6qbko" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:/uitmbtjQzIqUUChoBlRbXFPdKE= X-Enigmail-Draft-Status: N1110 In-Reply-To: Bytes: 2252 On 19.10.2024 12:45, Kenny McCormack wrote: > In article , > Lawrence D'Oliveiro wrote: >> On Sat, 12 Oct 2024 03:59:49 +0200, Janis Papanagnou wrote: >> >>> ... use bash-specifics like 'coproc' ... >> >> It isn't bash-specific. Maybe; I haven't checked all existing shells. I know that the keyword is not used in Kornshell. I know it's used in bash. I don't know, e.g., about zsh, the other major shell I'm also interested in. > > People on these newsgroups often use phrases like "bash specific" as > synonyms for "Not strictly POSIX" (*), even though the bash feature under > discussion is also found in other shells. In fact, many bash-isms, > including "coproc", came originally from ksh. I'm sure Janis knows this. Please note that while ksh supports co-processes it doesn't use (to my knowledge) the keyword 'coproc'. - Kornshells co-processes are invoked by appending the '|&' token to a command and reads and writes are done with 'read -p' and 'print -p', respectively. Janis