[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: coproc command doesn't accept NAME arg
From: |
Chet Ramey |
Subject: |
Re: coproc command doesn't accept NAME arg |
Date: |
Wed, 25 Feb 2009 08:10:44 -0500 |
User-agent: |
Thunderbird 2.0.0.19 (Macintosh/20081209) |
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-bash@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 chet@case.edu http://cnswww.cns.cwru.edu/~chet/