Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why did someone even decide that the program (the shell executable) needed to behave differently depending on "login" vs. "interactive"?

Just try this little experiment: disable the bash-completions package, and see how much more quickly you can open a new shell. While it might seem miniscule on your multicore multigigabyte desktop machine, on a NAS with limited resources, it can make a significant difference. And when you are scripting something (say, a nightly rsync backup), do you really need to have tab completion for git? This also applies to things you want to run once (on login) versus every time you open a new shell.

Just because you can't think of a use for something doesn't mean no one else can. Usually there is a reason for a feature, and the nice part is that nine times out of ten, when I'm looking for a way to do something I hadn't thought of before, it's already there in UNIX/Linux.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: