- 论坛徽章:
- 145
|
本帖最后由 jason680 于 2017-03-19 12:07 编辑
回复 7# wait_rabbit
Yes, I did.
but you CANNOT understand what they mean
$ bash --version
GNU bash, version 4.2.25(1)-release (i686-pc-linux-gnu)
OS: Ubuntu 12.04 LTS
your code
$ a=one; echo $a # two command a=one and echo $a
one
$ a=two echo $a # one command, a=two (in inside), echo $a (in outside) Note: $a=one (in outside)
one
>> 3 但我认为经过第2步,a的值已经变为 two,
那是你认为, 事实(shell认为--解释)与你认为不同
$ a=three echo $a > $a # one command, a=three (in inside), echo $a > $a ( in outside) Note: $a=one (in outside)
|
|