为什么不$echo '-n' write -n虽然在终端上-n是用单引号写的吗?
$echo '-n'
-n
因为引号是由 shell 处理的echo命令接收明文-n。如果你想回声-n,您可以例如printf '%s\n' -n
echo
printf '%s\n' -n