我好像找到原因了. 我在.bashrc里写了一个function, 这个function执行完后, 就会复现这个问题了.
试了把 set -e 这行去掉, 就没这个问题了. 这个脚本是copilot教的,不知道为什么set -e会有这个作用.
======================================
# 像tree一样显示文件和目录
function lsr()
{
# Enable error handling
set -e
# If no arguments are provided, use the current directory
local dir="${@:-.}"
# Find all files and directories in the specified directory,
# sort them alphabetically, and list them in long format
find "$dir" -print0 | sort -z | xargs -0 ls --color=auto -dlhaF
}
【 在 SlO 的大作中提到: 】
: 1. 换一个 ssh client试一试。
: 2. 用 screen 或者 tmux 打开多个窗口,再试一试。
--
FROM 39.174.239.*