I wrote the following scripts(the two scripts are at the same directory),
script A,
#!/bin/bash
. B.sh
script B,
#!/bin/bash
echo "script B..."
read -rsp $'Press enter to continue...\n'
After executing script A, I found when 'Press enter to continue...' message displays on the screen, but I still can't see script B is been opening using lsof.
lsof +D "/PATH/"