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

2×3×13×59 Posts
Default

Quote:
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:
Code:
+ ../../yafu/yafu 'expr(756756*3)' -silent
2270268
...
+ ../../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