in reply to Re^3: Forking an operative terminalin thread Forking an operative terminal
Well, or User::pwent:
% perl -MUser::pwent -E 'say getpw($<)->shell' /usr/local/bin/zsh [download]