News for hackers. Stuff that matters.
Re:A System-Witch’s Package Manager Murder Mystery by lima on Wednesday April 13, 2022 @09:13AM (#31014214)
Nicely written!

This is a great illustration of how Bash and similar shell dialects are convenient for interactive use but terrible as a programming language.

Change my mind: Bash is the PHP of operating systems. Any Bash script becomes tech debt the moment it is written.

Re:A System-Witch’s Package Manager Murder Mystery by timschmidt on Wednesday April 13, 2022 @10:48AM (#31015317)
That's unkind to PHP, which has grown into a relatively modern language over the years.
Re:A System-Witch’s Package Manager Murder Mystery by quxpar on Wednesday April 13, 2022 @08:57AM (#31014071)
Delightful tone, something that feels both whimsical and approachable.
Re:A System-Witch’s Package Manager Murder Mystery by adamkurkiewicz on Wednesday April 13, 2022 @07:06AM (#31013250)
Entertaining and educational! Good job finding out the line of kernel source code which causes the issue.
Re:A System-Witch’s Package Manager Murder Mystery by calvinmorrison on Wednesday April 13, 2022 @10:59AM (#31015455)
It was Mr. Pottering in the plumbing with a NIH Pipebomb
Re:A System-Witch’s Package Manager Murder Mystery by int3rlop3r on Wednesday April 13, 2022 @07:39AM (#31013489)
The girl is a good writer. The boy has subscribed.
Re:A System-Witch’s Package Manager Murder Mystery by bo1024 on Wednesday April 13, 2022 @08:17AM (#31013751)
Nice detective work and entertaining
Re:A System-Witch’s Package Manager Murder Mystery by mg794613 on Wednesday April 13, 2022 @06:27AM (#31013010)
Nor sure what this article is trying to convey? Is it about grepping wrong defaults for bash? Is it about mentioning the protagonist as much as often? I've read it twice now, and I feel ignorant.
Re:A System-Witch’s Package Manager Murder Mystery by faho on Wednesday April 13, 2022 @06:58AM (#31013195)
The environment variables count towards the argument limit. To a casual shell user, this is non-obvious and typical error messages are bad and don't even mention it. They say "Argument list too long" even when the argument list (argv) isn't too long, the environment list (envp) is.

So the author went through an investigation to figure out what was happening, and decided to write down her findings.

----

On a personal note, reading this caused me to look at fish's error message in this case. It mentioned "environment list", but tbh that's still too jargony and non-obvious.

So the next version of fish will now explicitly mention "environment variables" in the error message here, and it will print a hint if the environment variables account for over half the limit.

Re:A System-Witch’s Package Manager Murder Mystery by ewalk153 on Wednesday April 13, 2022 @12:17PM (#31016519)
Nice to watch the gears of open source and open ideas turn.