Don't ask to ask, just ask | |
PerlMonks |
Re^2: OT: invoking shell script with relative path and absolute pathby bliako (Monsignor) |
on Feb 10, 2020 at 16:38 UTC ( [id://11112734]=note: print w/replies, xml ) | Need Help?? |
Just to make sure, did you insert the which compile.sh inside /home/vinoth/funtions.sh? Because path may be modified within function. Once you are there print the full path too (from within that function). If your path contains the dot early then ANY compile.sh script in script's current dir will be executed first. So within the function print PWD as well at the moment of attempted execution.
In Section
Seekers of Perl Wisdom
|
|