[Top][All Lists]

[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 (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 <address@hidden>
> 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.

``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]