Ludovic Courtès writes: > Hi Marius! > > Marius Bakke skribis: > >> Ludovic Courtès writes: >> >>> Heya, >>> >>> Marius Bakke skribis: >>> >>>> * gnu/system/shadow.scm (default-skeletons): Instead of testing for >>>> $SSH_CLIENT, check whether '$-' includes the letter 'i'. >>> >>> That’s an improvement indeed, LGTM! >> >> I realized this will source /etc/profile twice when bash is invoked as >> 'bash -l -c foo', which isn't great. It also assumes /etc/profile >> exists at all, which might not hold true e.g. in a container. > > OK. (Though GuixSD containers do have /etc/profile, don’t they?) I only checked `guix environment -C` (no further arguments!). >> The main motivation for this commit is to make things like >> 'git-receive-pack', 'rsync' etc work out-of-the-box when installed in >> a user profile. The test for `cat` was ineffective on OpenSSH since it >> has a default PATH set to "/run/current-system/profile/bin". >> >> I've tested adding ~/.guix-profile/bin to the compiled-in default >> OpenSSH PATH instead, and it works. WDYT of this series? > > OK. > > I think it would make sense to add a test to (gnu tests ssh) for this, > because it’s one of these things that annoy everyone. Good idea. I came up with this: