В man getopt(1) написано: EXAMPLES Example scripts for (ba)sh and (t)csh are provided with the getopt(1) distribution, and are optionally installed in /usr/local/lib/getopt or /usr/lib/getopt. Но в /usr/local/lib/getopt or /usr/lib/getopt скриптов с примерами нет. Они находятся в /usr/share/doc/getopt-1.1.4 Было бы здорово пропатчить ман, чтобы было так: EXAMPLES Example scripts for (ba)sh and (t)csh are provided with the getopt(1) distribution, and are installed in /usr/share/doc/getopt-1.1.4. Где версия getopt подставляется в ман автоматически (скриптом configure, например).
Исправлено.