4 ms·
I think the "find" command was around before then, and it has long options. For example: find dir -type f -name "*.h" -print
by adrianmonk 6y ago
I think the "find" command was around before then, and it has long options. For example:
find dir -type f -name "*.h" -print
- tzs 6y agoThose aren't really options. The syntax of the find command is find <options> <paths> <expression> Those thing you list are part of the <expression> part of the command. The <options> part in BSD find, and I believe GNU find, only uses options of the form -X where X is a single character. It's a little confusing because the man pages for both BSD and GNU find do call some of the things that appear in the <expression> part of the command "options".
- macintux 6y agoFind is specifically called out in the article. > There were a few programs that ran on Unix systems and used long option names starting with either - or no prefix at all, such as find, but those syntaxes were not compatible with Unix getopt() and were parsed by ad-hoc code.