In a bash script I use the following:
#!/bin/bash calc=$(concalc "$*") printf "%s\n" "$calc"
I do get the result I want, but allways with this error message:
tcsetattr error: Inappropriate ioctl for device
Does anyone know how to get rid of this? When I use
concalc on its own it is no problem but as soon as I use it within a
command-substitution or a
pipe I get this message.