source command not found in sh shell

前端 未结 12 765
温柔的废话
温柔的废话 2020-11-28 02:14

I have a script that uses sh shell. I get an error in the line that uses the source command. It seems source is not included in my

12条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 02:59

    Bourne shell (sh) uses PATH to locate in source . If the file you are trying to source is not in your path, you get the error 'file not found'.

    Try:

    source ./
    

提交回复
热议问题