Keyboard Maestro Bash CURL Script Works Without Variable But Not With One
This question already has an answer here:
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).
上一篇: Bash脚本卷曲