GETOPT(1) GETOPT(1) getopt - () getopt - getopt [] [--] - getopt [] -o|--options - [] [--] getopt () , . getopt(3) . getopt : getopt ( SYNOPSIS-), ( SYNOPSIS-). - , ,,--". -o --options , . GETOPT_COMPATIBLE , ( -, SYNOPSIS-), getopt getopt(1). ( ). getopt*(1) ( ) - . , ( *eval). , getopt ( SYNOPSIS-). getopt-(1) , (-T). -a, --alternative '-'. -l, --longoptions - () . , . , - . - , . -n, --name - getopt(3) . getopt-(1) ,,getopt"-. -o, --options - ( ) . , getopt- - ( ) . - . + - ( ). -q, --quiet getopt(3). -Q, --quiet-output . getopt(3), -q. -s, --shell . -s , BASH . sh bash, csh, tcsh. -T, --test getopt(1) . , 4. getopt-(1), GETOPT_COMPATIBLE , ,,--" 0. -u, --unquoted . ( ) ,,havoc" ( getopt(1) ). -h, --help . -V, --version Display version and exit. getopt- ( SYNOPSIS-). () . . getopt- ( ). getopt(3) . . , , , - . - . , (. ). , . ,,-", ( ) . -- . , , =, (. ). , , =, ( =, , ; , ). , . -, , - . -- - . POSIXLY_CORRECT , +, - - . . , - . (-) , - ( ). , ( ,,shift" ). , . , , , , - . , - . , . , , , () . getopt-(1) . -, . , ,,--" . ,,-" . . , - . -- , - , . -, - ( SYNOPSIS-; - + ). , ,," - . , . , . . ( eval skoqke), . GETOPT_COMPATIBLE , SYNOPSIS , -u. . -s' . : sh, bash, csh tcsh. , ,,": sh- csh- . , . ,,-" ,,+" . SYNOPSIS ; POSIXLY_CORRECT . ,,+", POSIXLY_CORRECT , - (., ,,-") . -. ,,-", - ; , ,,--" . ,,--" , . getopt-(1) . , . ,,getopt"- -, getopt . , . (. - ), POSIXLY_CORRECT , , gezopt + . GETOPT_COMPATIBLE getopt . POSIXLY_CORRECT 100% ,," . , . , - + . getopt 0 , 1 getopt(3) , 2 , 3 , 4 -T. ,,(ba)sh" ,,(t)csh" getopt(1) , /usr/share/doc/util-linux. POSIXLY_CORRECT getopt(3) . , . - , ,,-". GETOPT_COMPATIBLE getopt SYNOPSIS. getopt(3) ( ). getopt(1) . ( ). Frodo Looijaard bash(1), tcsh(1), getopt(3) For bug reports, use the issue tracker . getopt ,,util-linux" . util-linux 2.41 2025-03-29 GETOPT(1)