Consider the following value of PATH variable:/bin:/usr/local/sbin:/home/tom/bin:/home/tom/test Tom modifies the my_scr.sh script, which is stored in the directory /home/tom/bin then places a copy of my_scr.sh in /home/tom/test. Executing my_scr.sh will:

Consider the following value of PATH variable:/bin:/usr/local/sbin:/home/tom/bin:/home/tom/test Tom modifies the my_scr.sh script, which is stored in the directory /home/tom/bin then places a copy of my_scr.sh in /home/tom/test. Executing my_scr.sh will:Category: Introduction to Linux IIConsider the following value of PATH variable:/bin:/usr/local/sbin:/home/tom/bin:/home/tom/test Tom modifies the my_scr.sh script, which is stored in the directory /home/tom/bin then places a copy of my_scr.sh in /home/tom/test. Executing my_scr.sh will:
Linux Questions Staff asked 1 year ago

Consider the following value of PATH variable:/bin:/usr/local/sbin:/home/tom/bin:/home/tom/test
Tom modifies the my_scr.sh script, which is stored in the directory /home/tom/bin then places a copy of my_scr.sh in /home/tom/test. Executing my_scr.sh will:

  • Run the original version of the script in the /home/tom/bin directory
  • Run the new version of the script placed in /home/tom/test
  • Check the timestamp and run the latest version of my_scr.sh
  • Not run at all, reports error

About the author