Hi Jim, jim hook wrote on Wed, Sep 08, 2021 at 11:24:18AM +0200:
> test$ cd > rmplayer > test$ > test$ type cd > cd is a function > test$ > test$ tail -4 .profile > cd() > { > echo rmplayer > } > test$ > test$ uname -mrs > OpenBSD 6.9 amd64 > test$ Those are useful features. I doubt you will find any Unix user who never used aliases or shell functions to modify the behaviour of system commands to better suit their personal taste. Even myself, though i dislike changing default configuration in general, currently have an alias in place that modifies the default behaviour of rm(1). From what i have heard, most OpenBSD developers use aliases or shell functions for several commands, not just for one. > Thinking of that home dirs could be on a shared storage, that can > be accessed by others and maliciously modify the ".profile", > etc. files of the targeted user. That is not an issue by any stretch of the imagination. If anyone else has write access to your home directory, you have already lost the game, and the number of ways how they own you is is next to unlimited. Yours, Ingo