-
Notifications
You must be signed in to change notification settings - Fork 192
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
Issue 1079 bash login shell #1502
Issue 1079 bash login shell #1502
Conversation
adding a space, single quote and double quote to check robustness of escaping mechanism in AiiDA
use login shell to execute all remote SSH commands This has the advantage that all commands will be executed in the same environment as seen by a user loggin in onto the machine (e.g. on most UNIX systems, .profile will be sourced for login shells, while it won't be sourced for non-login shells). Additionally, calling `bash -l -c '<cmd>'` instead of `<cmd>` means that the bash shell will be used, independent of the default shell on the system. This is advantageous on systems, where bash is not the default shell (since our remote commands work only in bash).
Codecov Report
@@ Coverage Diff @@
## release_v0.12.1 #1502 +/- ##
===================================================
+ Coverage 54.42% 54.43% +<.01%
===================================================
Files 246 246
Lines 32478 32480 +2
===================================================
+ Hits 17677 17679 +2
Misses 14801 14801
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome! as this doesn't touch the daemon, it should be easily merge able into develop. shouldn't we do the same for the local transport?
https://github.com/aiidateam/aiida_core/blob/67b26dd3911e68d8f1660f95d9559f9d3dc9d625/aiida/transport/plugins/local.py#L711
Thanks! |
fixes #1079 , helps with marvel-nccr/quantum-mobile#66
use login shell to execute all remote SSH commands
This has the advantage that all commands will be executed in the same
environment as seen by a user logging in on the machine
(e.g. on most UNIX systems, .profile will be sourced for login shells,
while it won't be sourced for non-login shells).
Additionally, calling
bash -l -c '<cmd>'
instead of<cmd>
means that the bash shell will be used, independent of the default
shell on the system.
This is advantageous on systems, where bash is not the default shell
(since our remote commands work only in bash).
Also