使用变量时找不到命令

时间:2021-01-10 13:05:14

标签: bash

我一直在尝试修复错误 即使变量不是命令,错误也会显示“找不到您的输入命令”

#/bin/bash

echo "Hello, World!!"
echo "Press enter to exit."
read your_input
if [your_input == ""]
then
    echo "Bye!!"
else
    echo "You typed $your_input anyway. Bye!!"
fi

0 个答案:

没有答案
相关问题