← Commit list

2ffd8986e

Ron Yorston
Ron Yorston
2023-04-16
SUCCESS Duration: 159s

Subject

tr: display usage for incorrect arguments

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

coreutils/tr.c+1 -1
@@ -299,7 +299,7 @@ int tr_main(int argc UNUSED_PARAM, char **argv)
*/
/* '+': stop at first non-option */
- opts = getopt32(argv, "^+" "Ccds" "\0" "-1");
+ opts = getopt32(argv, "^+" "Ccds" "\0" "-1:?2");
argv += optind;
str1_length = expand(*argv++, &str1);