Skip to content
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

Closed

Conversation

ArchieMeng
Copy link
Contributor

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

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 <mengyutao@uniontech.com>
@ArchieMeng
Copy link
Contributor Author

当前改法至少在zsh和fish中无法实现效果.具体怎么改还有待讨论.

@liwl1991
Copy link
Contributor

其他shell环境,可以根据$SHELL做判断?虽然这样,代码很丑陋,但是好像并没有通用的处理方案。不知道第三方库有隐藏发送文件的接口

@ArchieMeng
Copy link
Contributor Author

是的.主要是其他Shell里,不知道怎么不保存历史记录地运行命令.不然,现在就可以解决了.

@liwl1991
Copy link
Contributor

是的.主要是其他Shell里,不知道怎么不保存历史记录地运行命令.不然,现在就可以解决了.

其他不保存?那就不用删了
我没有用过其他shell,都是默认bash

@ArchieMeng
Copy link
Contributor Author

不过想了想,大多数人应该也是使用默认的bash去跑的.解决bash的,就解决了大部分了的.

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Dec 25, 2023

TAG Bot

New tag: 5.9.47
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #322

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Jan 10, 2024

TAG Bot

New tag: 5.9.48
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #327

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Jan 15, 2024

TAG Bot

New tag: 5.9.49
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #329

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Jan 25, 2024

TAG Bot

New tag: 6.0.10
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #332

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Feb 1, 2024

TAG Bot

New tag: 6.0.11
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #334

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Mar 12, 2024

TAG Bot

New tag: 6.0.12
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #339

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Jul 2, 2024

TAG Bot

New tag: 6.0.13
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #345

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Aug 5, 2024

TAG Bot

New tag: 6.0.14
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #349

@ArchieMeng
Copy link
Contributor Author

Need better implementations or replacing the current "expect" solutions

@ArchieMeng ArchieMeng closed this Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[有空] 添加ssh服务器连接后,使用历史记录中的执行命令无法再次登陆
2 participants