我读了这篇文章,在部分
### NO NO NO: this passes three strings:
### (1) "my
### (2) multiword
### (3) argument"
MYARG="\"my multiword argument\""
somecommand $MYARG
### THIS IS NOT (!!!!) THE SAME AS ###
command "my multiword argument"
### YOU NEED ###
MYARG="my multiword argument"
command "$MYARG"
这两种方法都解释为完整的字符串,与文章中所说的不同:
test.bash
#! /bin/bash
echo $1
./test.bash "\"my good ness\""
"my good ness"