base-files: fix /etc/profile call to unset appendpath#54105
base-files: fix /etc/profile call to unset appendpath#54105NyaaaWhatsUpDoc wants to merge 1 commit intovoid-linux:masterfrom
Conversation
|
Thanks for bringing this up. Imho I think this is a good change for consistent behavior across multiple shells. I actually made this change a while ago on my machine (and even made a noextract entry for /etc/profile), but kind of forgot about it. I use oksh as the login shell, which is why I think I noticed it at all. From what I can tell, bash will happily unset the function even without the -f flag, as long as there isn't a variable with the same name. The man page makes it sound like maybe that's what dash will do as well, but I don't think that's true. At least oksh and dash seem to require -f to unset a function. |
|
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it. |
Testing the changes
Have confirmed this behaviour of unset in bash, mksh and dash myself. And to quote the
unsetsection of the manpage for sh: