Getting “command not found” error in bash script

前端 未结 6 1190
鱼传尺愫
鱼传尺愫 2020-12-02 00:27

I have written a bash script that gets three paths based on input parameters and then then gets the imagename/filename in the path.

Something like:
I provide:

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-02 01:06

    $PATH is a predefined variable which gives the directories to search when looking for executables. Pick a different variable name for your script and you'll be fine.

提交回复
热议问题