You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In sessions where SHELL is not in the environment (kubectl exec, docker exec, chroot, some CI), new panes start /bin/sh. The interactive shell shows $SHELL from the user's passwd entry without exporting it, so herdr never inherits it:
$ env -u SHELL bash -c 'echo $SHELL'/bin/bash # bash fills $SHELL from the passwd entry
$ env -u SHELL bash -c 'printenv SHELL' # no output — not exported, children never see it
The current herdr does not use login shell stored in passwd. Therefore, I need to launch a shell that I want to use every time after spawning the pane even though that is already launched on the active pane.
Respect a login shell stored in passwd. In my understanding, the behavior would be compatible with tmux so I think this request is (hopefully) reasonable.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
idea / problem
In sessions where
SHELLis not in the environment (kubectl exec,docker exec, chroot, some CI), new panes start/bin/sh. The interactive shell shows$SHELLfrom the user's passwd entry without exporting it, so herdr never inherits it:The current herdr does not use login shell stored in passwd. Therefore, I need to launch a shell that I want to use every time after spawning the pane even though that is already launched on the active pane.
herdr/src/pane.rs
Lines 1206 to 1227 in 8d2af4e
requested change
Respect a login shell stored in passwd. In my understanding, the behavior would be compatible with tmux so I think this request is (hopefully) reasonable.
https://github.com/tmux/tmux/blob/e50545f4516bebb2efb027d077895bd8ca9727a3/tmux.c#L90-L92
(I created the patch on #1516)
why you want this
On a container that has no exported
SHELLenvironment, it's expensive to runcd path/to/workspaceandbashevery time on spawning a new pane.All reactions