echo -e working in terminal but not in bash script

前端 未结 2 615
被撕碎了的回忆
被撕碎了的回忆 2021-01-02 02:27

I developed and maintain a ruby gem called Githug and I am trying to write an automated test script for it. Githug basically manipulates a directory to put it into differen

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-02 02:46

    Wrong shebang:

    #! /bin/sh
    

    When it shall be a bash script, use

    #! /bin/bash
    

    Bash has a buildin echo, which isn't 100% identic with /bin/echo.

提交回复
热议问题