[GH-ISSUE #3957] 登录jumpserver时出现一堆代码命令 #2736

Closed
opened 2026-02-27 00:54:04 +03:00 by kerem · 1 comment
Owner

Originally created by @etanman on GitHub (May 29, 2025).
Original GitHub issue: https://github.com/electerm/electerm/issues/3957

Electerm Version and download file extension(Electerm版本和下载文件后缀)

electerm-1.91.1-win-x64-installer.exe

Platform detail (平台详情)

windows 7/8/10/11

What steps will reproduce the bug?(重现问题的详细步骤)

登录jumpserver后,第一次键入h列出主机时(再次键入h则不会),出现以下内容:
码:2,每页行数:32,总页数:3,总数量:91
提示:输入资产ID直接登录,二级搜索使用 // + 字段,如://192 上一页:b 下一页:n
搜索:
[Host]> echo $0|grep csh >/dev/null && set prompt_bak="$prompt" && set prompt="$prompt"
没有资产
搜索:echo $0|grep csh >/dev/null && set prompt_bak="$prompt" && set prompt="$prompt"
[Host]> echo $0|grep zsh >/dev/null && PS1_bak=$PS1&&PS1=$PS1''
没有资产
搜索:echo $0|grep zsh >/dev/null && PS1_bak=$PS1&&PS1=$PS1''
[Host]> echo $0|grep ash >/dev/null && PS1_bak=$PS1&&PS1=$PS1'echo '
没有资产
搜索:echo $0|grep ash >/dev/null && PS1_bak=$PS1&&PS1=$PS1'echo '
[Host]> echo $0|grep ksh >/dev/null && PS1_bak=$PS1&&PS1=$PS1'echo '
没有资产
搜索:echo $0|grep ksh >/dev/null && PS1_bak=$PS1&&PS1=$PS1'echo '
[Host]> clear
没有资产
搜索:clear

What should have happened?(期望的结果)

不要出现这些东西

Would this happen in other terminal app(是否能够在其他同类软件重现这个问题)

No response

Additional information(其他任何相关信息)

No response

Originally created by @etanman on GitHub (May 29, 2025). Original GitHub issue: https://github.com/electerm/electerm/issues/3957 ### Electerm Version and download file extension(Electerm版本和下载文件后缀) electerm-1.91.1-win-x64-installer.exe ### Platform detail (平台详情) windows 7/8/10/11 ### What steps will reproduce the bug?(重现问题的详细步骤) 登录jumpserver后,第一次键入h列出主机时(再次键入h则不会),出现以下内容: 码:2,每页行数:32,总页数:3,总数量:91 提示:输入资产ID直接登录,二级搜索使用 // + 字段,如://192 上一页:b 下一页:n 搜索: [Host]> echo $0|grep csh >/dev/null && set prompt_bak="$prompt" && set prompt="$prompt" 没有资产 搜索:echo $0|grep csh >/dev/null && set prompt_bak="$prompt" && set prompt="$prompt" [Host]> echo $0|grep zsh >/dev/null && PS1_bak=$PS1&&PS1=$PS1'' 没有资产 搜索:echo $0|grep zsh >/dev/null && PS1_bak=$PS1&&PS1=$PS1'' [Host]> echo $0|grep ash >/dev/null && PS1_bak=$PS1&&PS1=$PS1'`echo `' 没有资产 搜索:echo $0|grep ash >/dev/null && PS1_bak=$PS1&&PS1=$PS1'`echo `' [Host]> echo $0|grep ksh >/dev/null && PS1_bak=$PS1&&PS1=$PS1'`echo `' 没有资产 搜索:echo $0|grep ksh >/dev/null && PS1_bak=$PS1&&PS1=$PS1'`echo `' [Host]> clear 没有资产 搜索:clear ### What should have happened?(期望的结果) 不要出现这些东西 ### Would this happen in other terminal app(是否能够在其他同类软件重现这个问题) _No response_ ### Additional information(其他任何相关信息) _No response_
kerem closed this issue 2026-02-27 00:54:04 +03:00
Author
Owner

@zxdong262 commented on GitHub (May 29, 2025):

关闭sftp路径跟随终端即可

<!-- gh-comment-id:2918198444 --> @zxdong262 commented on GitHub (May 29, 2025): 关闭sftp路径跟随终端即可
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#2736
No description provided.