Description of problem: gawk -h exists with ecode of 1 and raises "gawk: option requires an argument -- h" warning while --help works as expected There are two problems: a] gawk -h exists with ecode of 1 b] gawk -h raises "gawk: option requires an argument -- h" warning Both problems appear on F22 gawk version gawk-4.1.1-6.fc22.x86_64 Just problem a] is appearing on RHEL6.x gawk-3.1.7-10.el6_7.3.x86_64 Note gawk trunk/master from today (GNU Awk 4.1.60, API: 1.2) does not sufer from any of those problems. Version-Release number of selected component (if applicable): gawk-4.1.1-6.fc22.x86_64 gawk-3.1.7-10.el6_7.3.x86_64 How reproducible: 100% Steps to Reproduce: 1. gawk -h; echo $? 2. gawk --help; echo $? 3. Actual results: Help (-h) is recognized as valid operation, but fails with ecode of 1 Help (--help) is recognized as valid operation and passes. Expected results: Help (-h|--help) should be recognized as valid operation and pass. Additional info: [f_ii@localhost ~]$ rpm -q gawk gawk-4.1.1-6.fc22.x86_64 [f_ii@localhost ~]$ gawk -h;echo $? gawk: option requires an argument -- h Usage: gawk [POSIX or GNU style options] -f progfile [--] file ... Usage: gawk [POSIX or GNU style options] [--] 'program' file ... ... Examples: gawk '{ sum += $1 }; END { print sum }' file gawk -F: '{ print $1 }' /etc/passwd 1 [f_ii@localhost ~]$ gawk --help;echo $? Usage: gawk [POSIX or GNU style options] -f progfile [--] file ... Usage: gawk [POSIX or GNU style options] [--] 'program' file ... ... Examples: gawk '{ sum += $1 }; END { print sum }' file gawk -F: '{ print $1 }' /etc/passwd 0
Hello František, this issue is already fixed in F23. It won't be fixed for F22, because it's almost EOL for F22. Best regards, Dee'Kej