3 ms·
It's strange how he describes grep as "a set of dynamically linked libraries" as a more accurate replacement of "a standalone executable". It's a dynamically l
by metalliqaz 7y ago
It's strange how he describes grep as "a set of dynamically linked libraries" as a more accurate replacement of "a standalone executable".
It's a dynamically linked executable, just like so many other programs.
$ file /usr/bin/grep
/usr/bin/grep: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, stripped
Such an odd choice of language.
- beckingz 7y agoWhat is an executable? A miserable pile of libraries!
- marcosdumay 7y agoPlus some metadata that creates an entry point.
- yingw787 7y agoAuthor here. When I made the correction, I took a look at what `ldd /usr/local/bin/hugo` gave me, because `hugo`, the static website generator I use, was packaged as a binary. `ldd` returned `not a dynamic executable`. I was originally under the impression that `grep` was similar to `hugo` in that sense, and `ldd` changed my perception.