Options (1)
-l, --mathlibbooleanCreate and use a coprocess running `bc`
Example:
coproc BC { bc {{[-l|--mathlib]}}; }; echo "1/3" >&"${BC[1]}"; read <&"${BC[0]}" output; echo "$output"Examples (7)
Write to a specific coprocess `stdin`
echo "input" >&"${name[1]}"Read from a specific coprocess `stdout`
read <&"${name[0]}" variableCreate a coprocess which repeatedly reads `stdin` and runs some commands on the input
Create a coprocess which repeatedly reads `stdin`, runs a pipeline on the input, and writes the output to `stdout`
made by @shridhargupta | data from tldr-pages