View Single Post
Old 2021-10-03, 18:07   #9
EdH's Avatar
"Ed Hall"
Dec 2009
Adirondack Mtns

2×3×13×59 Posts

Originally Posted by chris2be8 View Post
What happens if you add set -x to the script? It should show you what the shell thinks the command it's executing is. Try it both in the small working script and the big one where it does not work. See the man page for bash for details (search for "SHELL BUILTIN COMMANDS" and scroll down).
Well, set -x showed that the exact same expression is sent to YAFU, but with different results:
+ ../../yafu/yafu 'expr(756756*3)' -silent
+ ../../yafu/yafu 'expr(756756*3)' -silent
no variable indicator (@): interpreting batchfile lines as input expressions
eof; done processing batchfile
EdH is offline   Reply With Quote