Keyboard Maestro Bash CURL Script Works Without Variable But Not With One

This question already has an answer here:

  • Bash: A multiword variable breaking curl 3 answers

  • Always quote shell expansions, unless you have a specific and compelling reason to do otherwise.

    -d "$KMVAR_CURL_Text"
    

    Otherwise, the string goes through string-splitting (becoming multiple words split on the contents of IFS ) and glob expansion (having each of those words treated as a glob expression and potentially replaced with a list of filenames).

    链接地址: http://www.djcxy.com/p/48576.html

    上一篇: Bash脚本卷曲

    下一篇: 键盘Maestro Bash CURL脚本无变量但无法运行