Consider the following value of PATH variable: /bin:/usr/local/sbin:/home/joe/bin:/home/joe/test Joe modifies the my_scr.sh script, which is stored in the directory /home/joe/bin then places a copy of my_scr.sh in /home/joe/test. Executing my_scr.sh will:
- Run the original version of the script in the /home/joe/bin directory
- Check the timestamp and run the latest version of my_scr.sh
- Not run at all, reports error
- Run the new version of the script placed in /home/joe/test
Please login or Register to submit your answer