Closed human9 closed 6 months ago
If we don't want to care about compatibility with obscure shells, I think it's better to just stick to -l
instead of exec -a
.
I think that's the most portable option, even if it isn't POSIX. Works with every shell I know of.
I can't figure out another way, anyway.
The --login/-l flag signals that this is a login shell.
Currently without this flag environment files like
.profile
or/etc/profile
are not sourced, which is unexpected when opening a new terminal.