The try command detects shell type from $SHELL variable. When bash is launched from fish, $SHELL is still set to /usr/bin/fish, causing try to output fish syntax which fails in bash with syntax errors. Explicitly set SHELL=/bin/bash for the try init call to ensure correct shell detection.