I'm looking for a way of processing a shell script to determine:
- which commands, scripts or functions are called in the script.
- which files are accessed by the script (r or w) .
It doesn't need to recurse down through the dependencies, just list what it runs directly. I could probably write something that does this myself but it must have been done before ... I'm just not finding it.