In article <20180602223020.16462f...@cvs.netbsd.org>, Eitan Adler <source-changes-d@NetBSD.org> wrote: >-=-=-=-=-=- > >Module Name: src >Committed By: eadler >Date: Sat Jun 2 22:30:20 UTC 2018 > >Modified Files: > src/external/bsd/top/dist: top.c > >Log Message: >top(1): chdir to / at init > >This allows us to unmount whatever directory we happen to be in when we >started top(1).
Cuts both ways; next time I hit ^\ to make it core-dump and it does not work because it chdir'ed to slash... I will then have to edit the source to fix this. In general programs should not do unexpected things; you can alias top to 'cd / && /usr/bin/top' in your own environment. Please don't impose this to everyone. We all strive for less complexity and magic. christos