demo.sh has following line:
. ./one.sh > ../Results/myResult.txt 2>&1
when i run ./demo.sh it is giving:
ambiguous redirectine 1: 1
But the myResult.txt gets created at appropriate location with size 0 KB.
If i remove the redirection of output, it script works fine. What is wrong with my script? I have gone through Ambiguous output redirect on solaris, shell script ambiguous redirect, ambiguous redirect - file gets created. Nothing helped though.