Getting “command not found” error in bash script

前端 未结 6 1202
鱼传尺愫
鱼传尺愫 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:16

    Use a different variable name than PATH. $PATH is the environment variable which tells your shell where to look for executables (so, e.g., you can run ls instead of /bin/ls).

提交回复
热议问题