Ancestors

Toot

Written by Justine Smithies on 2025-01-15 at 17:46

Resolved my issue with my git ssh-askpass.sh asking for passwords 2 to 3 times when running the oksh shell. Turns out I had to move these two lines from .kshrc to .profile and everyone is happy again for now. Worked fine in bash being in .bashrc but hey ho. Everyday is a school day, And to think I was going to throw the towel in on ksh. 😃

SSH_ASKPASS_REQUIRE=prefer; export SSH_ASKPASS_REQUIRE

#oksh #FreeBSD #RunBSD

=> More informations about this toot | More toots from justine@snac.smithies.me.uk

Descendants

Written by ax6761 on 2025-01-15 at 17:58

@justine The manual page https://man.freebsd.org/cgi/man.cgi?query=oksh&apropos=0&sektion=0&manpath=FreeBSD+14.2-RELEASE+and+Ports&arch=default&format=html under “Description” says a “$HOME/.kshrc” is used if it is set as “ENV” environment variable via “$HOME/.profile”.

In “Files” section, “$HOME/.kshrc” is not listed.

That may explain the behavior that you observed.

Now if some settings from “$HOME/.kshrc” are used nonetheless (without “$ENV”), I would not be able to explain.

=> More informations about this toot | More toots from ax6761@freeradical.zone

Written by Justine Smithies on 2025-01-15 at 18:05

In case I'm misunderstanding you and the docs ? I do have ENV set in .profile.

ENV=$HOME/.kshrc; export ENV

=> More informations about this toot | More toots from justine@snac.smithies.me.uk

Written by ax6761 on 2025-01-15 at 18:08

@justine Then the dang thing ought to have worked … hmm… :blobfoxconfused:

=> More informations about this toot | More toots from ax6761@freeradical.zone

Written by Justine Smithies on 2025-01-15 at 18:27

I think I know what stopped it from working. In my .kshrc I have at the top a line to don't do anything if we don't have a prompt, interactive shell.

[[ $- != i ]] && return || [ -z "$PS1" ] && return

So it seems the askpass stuff wouldn't work unless it was in .profile

=> More informations about this toot | More toots from justine@snac.smithies.me.uk

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113833620588852141
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
268.761779 milliseconds
Gemini-to-HTML Time
1.310732 milliseconds

This content has been proxied by September (ba2dc).