$ cat a.sh
#!/bin/sh
CALL="./b.sh"
echo "a"
echo "a"
echo "a"
$CALL
echo "a"
echo "a"
echo "a"
$cat b.sh
#!/bin/sh
cp c.sh a.sh
$cat c.sh
#!/bin/sh
CALL="./b.sh"
echo "c"
echo "c"
echo "c"
$CALL
echo "c"
echo "c"
echo "c"
执行结果:
$./a.sh
a
a
a
c
c
c
阅读(1074) | 评论(0) | 转发(0) |