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
@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
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
@justine Then the dang thing ought to have worked … hmm… :blobfoxconfused:
=> More informations about this toot | More toots from ax6761@freeradical.zone
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 This content has been proxied by September (ba2dc).Proxy Information
text/gemini