3 ms·
What's linux? What's python? What's a script? What's a kernal? What's a symlink? What's hex? What's a hex-editor? i_end = strnchr(bprm->buf, sizeof(bprm->
by mjburgess 5y ago
What's linux? What's python? What's a script?
What's a kernal? What's a symlink? What's hex? What's a hex-editor?
i_end = strnchr(bprm->buf, sizeof(bprm->buf), '\n');
What's `->buf`, `strnchr(bprm`, `sizeof(brmp`, ? Why does `\n';` have a `;` ?
FYI: I know the answers to all these questions but the idea that this article isnt for a "restricted few who have the right prior knowledge" is bizarre. It reads almost like a satire... this would be a classic case of an article where a vast amount of prior knowledge is presumed.
Who knows what a kernal is that doesnt know how to debug `/usr/local/bin/python^M` ? Some, but a vanishingly small highly priorly knowledable group.
- nyellin 5y agoFirst of all, thank you for the comments. That said, I'm not claiming that you don't need any pre-requisites. Obviously this article is aimed at people who use bash or else they wouldn't be having an issue with the shebang! There is a huge audience who knows what a kernel is (in theory) and writes shell scripts, but doesn't know how shebangs work and has never actually looked at kernel code. My point isn't that you don't need prerequisites, rather that I think there is room for writing at a certain level while also giving people hooks to learn more. Anyway, I do appreciate the feedback. Thank you.