【发布时间】:2021-07-13 11:16:42
【问题描述】:
我有一个包含标志和参数的环境变量,例如
export CMD='compile -m bla --vars "hello there"'
当我尝试运行run ${CMD} 时,错误提示:
error: unrecognized arguments: there"
它没有记录引用属于“hello there”。 我怎样才能逃脱呢?
【问题讨论】:
标签: bash variables arguments escaping space