When I try to create a directory which already exists as a file, I get error level = 1 and error message:
Code:
mkdir: `a/test/file' exists but is not a directory
According to the EXIT STATUS section of the bash manual page,
Quote:
If a command is found but is not executable, the return status is 126.
|
This might also explain which strace is not executing.
Find out where mkdir and strace are being found using these commands:
Code:
which mkdir
which strace
Check the permissions of the files is such that your user can read and execute the files. If they ar not executable then I think you have a serious system state issue - your files have been messed up somehow, and you are probably going to be glad of that full system backup you made.
Another (easier to fix, but less likely) possibility is that the filesystem on which the files reside is mounted with the noexec flag set. In this case, you really need to find out why and resolve the issue.