我在运行上面个脚本的时候,居然说这样說#!/bin/bash
if [ "$SHELL" = "/bin/bash" ]; then
echo "your login shell is the bash (bourne again shell)"
else
echo "your login shell is not bash but $SHELL"
fi
怎么回事呐
我在运行上面个脚本的时候,居然说这样說#!/bin/bash
if [ "$SHELL" = "/bin/bash" ]; then
echo "your login shell is the bash (bourne again shell)"
else
echo "your login shell is not bash but $SHELL"
fi
#!/bin/bash
if [ "$SHELL" = "/bin/bash" ]; then
echo"your login shell is the bash (bourne again shell)"
else
echo"your login shell is not bash but $SHELL"
fi
./b: line 3: echoyour login shell is the bash (bourne again shell): command not found
cyl@ubuntu:~/Desktop$
呵呵,这个就行#!/bin/bash
echo "hello"
#!/bin/bash
if [ "$SHELL" = "/bin/bash" ]; then
echo "your login shell is the bash (bourne again shell)"
else
echo "your login shell is not bash but $SHELL"
fi
人家是说前...cyl-seaside 写了:不行啊#!/bin/bash
if [ "$SHELL" = "/bin/bash" ]; then
echo"your login shell is the bash (bourne again shell)"
else
echo"your login shell is not bash but $SHELL"
fi./b: line 3: echoyour login shell is the bash (bourne again shell): command not found
cyl@ubuntu:~/Desktop$