Reputation: 121830
I have written a series of shell scripts which purpose is not really the matter at hand, the problem is with permissions (?). These scripts run on both Linux hosts and Windows XP hosts without problems.
However, on Windows 7, something happens and I cannot fathom the reason why.
The first thing this script does is source a file (source utils.conf
) which is in the same directory as the script itself. But when the script is invoked, the output is:
source: utils.conf: file not found
And the script barfs (by design). It does not even say "permission denied", but "file not found". And this is not a typo, it DOES say file not found
and not no such file or directory
.
But... If I am at the prompt and type:
(source utils.conf; echo $SOMEVARFROMTHATFILE)
it works OK!
What's more, I checked via the GUI that the user had the permissions to read and execute on all relevant files: this is the case.
Why doesn't the script work?
Upvotes: 0
Views: 360
Reputation: 301527
Must be related to this, which was a bug that was fixed in newer versions ( 4)
http://www.mail-archive.com/[email protected]/msg05791.html
Upvotes: 1