|
发表于 2005-5-12 02:42:37
|
显示全部楼层
Post by ccic
[root@localhost kk]# cat 3
#!/bin/bash
xx='Current directory is''pwd'
echo $xx
[root@localhost kk]# ./3
Current directory ispwd
[root@localhost kk]#
这又是为什么啊
怎么就当字符输出了
而不是输出路径啊
我也试着写过
xx='Current directory is' 'pwd'
echo $xx
但这样就输出pwd命令的结果 当前路径而不显示前面的文字了
晕
晕~~~,看来这里论坛的资源全浪费啦~~ |
|