Linux
Welcome to c/linux!
Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!
Rules:
-
Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.
-
Be respectful: Treat fellow community members with respect and courtesy.
-
Quality over quantity: Share informative and thought-provoking content.
-
No spam or self-promotion: Avoid excessive self-promotion or spamming.
-
No NSFW adult content
-
Follow general lemmy guidelines.
view the rest of the comments
I'm currently working on a build system and one of the big challenges, I still have is when to re-run a task vs. use a cached result.
In particular, for external CLIs, I had the more-or-less genius idea to run them with
strace
and then pick out all the paths from theopenat
calls, to figure out which files they use as inputs.I knew that
strace
has a tendency to output a flood of messages, so I tried it withls
first, thinking surely it would just open the directory that's to be listed and then exit.Yeah... no. ๐ซ
This is the output, in a directory that contains only a single file:
Like, damn,
ls
loads 4 different libraries and all the locale files, so it can output this:I would really like to know what lead to it always reading out my choice of currency. But ultimately, yeah, that was just one of those moments where I noticed again that even seemingly innocuous programs are just stupidly complex.
The locale is used for sort order.
Ah, that makes some sense. Thanks.
Does it still load locales if you invoke it with
LC_ALL=C
orLC_ALL=POSIX
?That would be a smart optimization, methinks.