On Wed, Feb 03, 2021 at 12:07:38PM -0500, Chet Ramey wrote: > So your shell is not running in the same process group as the terminal, > and has no access to read from its controlling terminal.
Thanks ... you gave me a clue to fix this. Not ideal, but it works. if [[ -n $SHELL && -z $SSH_AGENT_PID && -z $DISPLAY ]] then [[ $( tty ) != /dev/tty* ]] && exec -l ssh-agent bash --login ssh-agent bash --login exit fi -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 https://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: https://www.phcomp.co.uk/Contact.html #include <std_disclaimer.h>