4 ms·
This is very common in unix tools where the name of the executable changes the behavior of the tool (e.g. bash/sh, vim/vi). Exiftool is more like this, where yo
by orev 3y ago
This is very common in unix tools where the name of the executable changes the behavior of the tool (e.g. bash/sh, vim/vi). Exiftool is more like this, where you can pass in command line options inside () within the executable file name.
- _0ffh 3y agoYeah, I believe the trick is to have a bunch of links for different utilities all pointing to the same executable, which then varies it's behaviour based on how it was called.
- 8organicbits 3y agoNeat! https://github.com/vim/vim/blob/ee17b6f70d382ec6c5d8d27b56c4e84106ac8c55/src/main.c#L208 https://github.com/vim/vim/blob/ee17b6f70d382ec6c5d8d27b56c4...