Sujet : Re: Different variable assignments
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.unix.shellDate : 19. Oct 2024, 13:25:14
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vf08fi$3sf5e$1@dont-email.me>
References : 1 2 3 4 5
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 19.10.2024 12:45, Kenny McCormack wrote:
In article <vecmp3$pur$1@dont-email.me>,
Lawrence D'Oliveiro <ldo@nz.invalid> 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