这是我新编的各位看看谢谢

这是我新编的各位看看谢谢

$0='du -h /var'
echo $0
if [ "$0" = "dh" ];then
  echo "ok"
else
  echo "stop"
fi
错误提示:dh.sh: line 1: dh.sh=du -h /var: no such file or directory      
给变量赋值时不能加 $ 符号, 引用变量时需要加 $