-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Useless last executed command after ssh login #271
Conversation
Remote control uses a temporary script to do the remote login. However, it will leave an useless last executed command which cannot be ran again. This commit erases the login script execution history after login. Fix: linuxdeepin/developer-center#4037 Log: Useless last executed command after ssh login Signed-off-by: Yutao Meng <[email protected]>
4e97fc8
to
b219525
Compare
当前改法至少在zsh和fish中无法实现效果.具体怎么改还有待讨论. |
其他shell环境,可以根据$SHELL做判断?虽然这样,代码很丑陋,但是好像并没有通用的处理方案。不知道第三方库有隐藏发送文件的接口 |
是的.主要是其他Shell里,不知道怎么不保存历史记录地运行命令.不然,现在就可以解决了. |
其他不保存?那就不用删了 |
不过想了想,大多数人应该也是使用默认的bash去跑的.解决bash的,就解决了大部分了的. |
TAG Bot New tag: 5.9.47 |
TAG Bot New tag: 5.9.48 |
TAG Bot New tag: 5.9.49 |
TAG Bot New tag: 6.0.10 |
TAG Bot New tag: 6.0.11 |
TAG Bot New tag: 6.0.12 |
TAG Bot New tag: 6.0.13 |
TAG Bot New tag: 6.0.14 |
Need better implementations or replacing the current "expect" solutions |
Remote control uses a temporary script to do the remote login. However, it will leave an useless last executed command which cannot be ran again. This commit erases the login script execution history after login.
Fix: linuxdeepin/developer-center#4037
Log: Useless last executed command after ssh login