我编写了以下 bash 脚本:
alias uploadToCloud='
say "Which file would you like me to upload, $name?"
echo "File?"
read $file
mv $file ~/Dropbox
say "It will be online soon."
echo "The file will be online soon."
'
但是在运行它时,我得到以下输出:
usage: mv [-f | -i | -n] [-v] source target
mv [-f | -i | -n] [-v] source ... directory
我真的不确定我做错了什么。