Re:Show HN: boxxy – Control where Linux programs put files, ...
by ajsnigrutin on Thursday February 09, 2023 @07:16PM
(#34733739)
eg. ~./bashrc has existed there for 30+ years, changing stuff just because someone doesn't like seeing a file in a folder is imho stupid.
[ Parent
| on HN ]
Re:Show HN: boxxy – Control where Linux programs put files, ...
by chungy on Thursday February 09, 2023 @07:31PM
(#34733881)
A hidden file, even. Stop using "ls -A" and you'll be fine.
Re:Show HN: boxxy – Control where Linux programs put files, ...
by superluserdo on Thursday February 09, 2023 @08:46PM
(#34734579)
To be pedantic, if we're going to cite Unix history, then technically there is no such thing as a "hidden" file. As I understand, the original implementation of tools like ls would not show the current directory "." in the listing. The quickest way of doing this in C was checking whether dentry.name[0] == '.'
This also had the side effect of hiding entries that had names beginning with ".", and over time an implementation bug/quirk became accepted behaviour, and was post-hoc rationalised as "hidden" files.
Re:Show HN: boxxy – Control where Linux programs put files, ...
by xolox on Friday February 10, 2023 @08:27AM
(#34739348)
Who cares how the feature of hidden files came to be, when it has been what it is now for so many years?
Re:Show HN: boxxy – Control where Linux programs put files, ...
by brigandish on Thursday February 09, 2023 @07:55PM
(#34734127)
As a defence of hardcoded paths might go, I could've done better myself. What else from your OS 30 years ago might you keep just because it's 30+ years old?
Re:Show HN: boxxy – Control where Linux programs put files, ...
by ajsnigrutin on Thursday February 09, 2023 @08:33PM
(#34734458)
I keep it because it's worked for 30 years without issues and it's still working. Must you always replace something, just because a newer thing is "out there"? On the other hand, this is hackernews, and rewriting everything, from a text editor to a file browser, into a <language of the week> (ruby, go, rust,...) is a thing.
Re:Show HN: boxxy – Control where Linux programs put files, ...
by brigandish on Thursday February 09, 2023 @10:50PM
(#34735387)
Try moving all of those directories and files somewhere else that you would prefer and then see which programs break, which apps and libraries won't install, and then wonder why hardcoding is something the devs for these projects cling to.
Re:Show HN: boxxy – Control where Linux programs put files, ...
by Jorengarenar on Friday February 10, 2023 @06:39PM
(#34747597)
Or perhaps Bash for 30 years was using a sub-optimal solution and now when a better approach has emerged it just stubbornly refuses to adapt?
Re:Show HN: boxxy – Control where Linux programs put files, ...
by hyperupcall on Thursday February 09, 2023 @11:51PM
(#34735756)
I'd say bashrc and profile and friends are one of the few examples in which using hardcoded paths is OK. Same with SSH, GPG, and PAM.
But when people are talking about compliance, and hardcoding very few people are talking about those applications - there are hundreds of other applications do the wrong thing, and some scripts hardcode things as a result.
Re:Show HN: boxxy – Control where Linux programs put files, ...
by iforgotpassword on Friday February 10, 2023 @03:31AM
(#34737106)
No, but don't keep doing it that way for new software, or even new files. You existing config file is in ~ because it's 30 years old. Fine.
If you get to the point where you need another file for something, put it in a directory under .config so whenever you need to add even more, you don't keep cluttering my home.
Re:Show HN: boxxy – Control where Linux programs put files, ...
by YeGoblynQueenne on Friday February 10, 2023 @05:01AM
(#34737711)
Home is where the .bashrc is <3