Chinaunix首页 | 论坛 | 博客
  • 博客访问: 424791
  • 博文数量: 136
  • 博客积分: 5351
  • 博客等级: 少校
  • 技术积分: 1446
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-29 15:46
文章存档

2013年(2)

2012年(18)

2011年(116)

分类: Python/Ruby

2011-10-02 10:28:33

1.  P243:  里面有一段程序与预料结果有出入

#vim  test0

#!/bin/bash
#test   the  option of array

function   functest26  {
     local    array26
     array=('echo "$@"')
     echo  "the new  array value is: ${array26[*]}"
}

array26=(2 3 4 5 6 )
echo  "the original array  is ${array26[*]}"
functest26   ${array26[*]}

#./test0      the  new array  value is:  并不能  按预料结果输出

思考不能输出的原因:




阅读(471) | 评论(0) | 转发(0) |
0

上一篇:加载登录启动脚本

下一篇:14--创建函数

给主人留下些什么吧!~~