这是我的问题.在bash 3中:
$ test='One "This is two" Three' $ set -- $test $ echo $2 "This
如何获得的bash了解行情,并返回$ 2作为This is two和不"This?不幸的是,我不能改变test这个例子中调用的变量的构造.
This is two
"This
test
string bash arguments spaces quoting
arguments ×1
bash ×1
quoting ×1
spaces ×1
string ×1