Ksh93反击行为的区别

时间:2013-10-21 15:51:06

标签: ksh

有人可以解释下面的行为差异吗?

ksh 93t + coreutils-6.12:

> cat test.txt
1
2
3
4
5
6
7
8
9
10
> abc=1
> head -`expr $abc + 3` test.txt
1
2
3
4
> cat test.txt | head -`expr $abc + 3`
1
2
3
4

ksh 93u + coreutils 8.12:

> cat test.txt
1
2
3
4
5
6
7
8
9
10
> abc=1
> head -`expr $abc + 3` test.txt
1
2
3
4
> cat test.txt | head -`expr $abc + 3`    1
2
3
4
5
6
7
8
9
10

0 个答案:

没有答案