[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] coprocess help
From: |
Greg Wooledge |
Subject: |
Re: [Help-bash] coprocess help |
Date: |
Wed, 6 Mar 2013 14:24:03 -0500 |
User-agent: |
Mutt/1.4.2.3i |
On Wed, Mar 06, 2013 at 01:07:15PM -0600, address@hidden wrote:
> I am playing with coproc.bash that comes with version 3.2.25
> Having no luck
>
> $ coprocess open "/usr/bin/bc -l"
> [1] 13460
> $ /usr/share/doc/bash-3.2/functions/coproc.bash: line 53: /usr/bin/bc -l:
> No such file or directory
It's looking for a file literally named "bc -l" in that directory,
because line 53 looks like this:
( "$@" <$fifo.in >$fifo.out ; rm -f "$fifo.in" "$fifo.out" ) &
So remove the quotes around the command. You want each argument to be
separate.