由买买提看人间百态

topics

全部话题 - 话题: cs111b
(共0页)
w**********e
发帖数: 74
1
我不明白 为什么变量path 不能带到ls命令中
#!/bin/csh -f
set path=./cs111b
ls -l $path
echo path=$path
libra% aa
ls: Command not found
path=./cs111b
可以马上回答吗? 谢谢
m*e
发帖数: 155
2
it is "Command" not found, not "path" not found.
try a different variable name from "path".
$path turns out to be used by shell to find all "Command"s,
therefore if you set it to ./cs111b, all you can execute are
shell build-ins plus executables in ./cs111b/ only.
(共0页)