[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: coproc command doesn't accept NAME arg
From: |
Jan Schampera |
Subject: |
Re: coproc command doesn't accept NAME arg |
Date: |
Wed, 25 Feb 2009 06:22:19 +0100 |
User-agent: |
Mozilla-Thunderbird 2.0.0.19 (X11/20090103) |
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.
Jan