|
2012-04-21 Bash's superintelligent errors about exec failuresLet's take a closer look at bash's error message from yesterday, because if you pay close attention something really interesting is going on. Here's the error message again:
On first blush, if you don't think about it too much, this looks
perfectly sensible: bash is reporting that when it tried to But, wait. When the Here, have another example error message from bash:
(I did some binary editing to create that failure.) That's right. When an (If you trace the system calls it's using, you can clearly see it selectively reading several bits of the ELF binary.) If you try these same things in other, simpler shells, they will simply
report something like ' (zsh will report the interpreter problem with a shell script but not with a binary, which strikes me as a reasonable amount for a complex shell to do. Checking for this error with shell scripts is not that difficult and it does happen periodically.)
2012-04-18 Why you should never use
|
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |