Jan Schampera wrote: > Tim Hatch wrote: > >> Pilot:~/tmp/bash-4.0 tim$ coproc NAME ls >> [1] 18474 >> Pilot:~/tmp/bash-4.0 tim$ ./bash: line 32: NAME: command not found >> >> [1]+ Exit 127 coproc COPROC NAME ls > > For some reason it expects a compound command on named coprocesses, > > http://bash-hackers.org/wiki/doku.php/syntax/keywords/coproc > > MSGID <mailman.4819.1231909794.26697.bug-b...@gnu.org> > > bash(1): > If NAME is not supplied, the default name is COPROC. NAME must not be > supplied if command is a simple command (see above); otherwise, it is > interpreted as the first word of the simple command. > > Yes, it's not intuitive.
It's an ambiguous parse otherwise. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/