Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Usage string states that file1 and file2 are required * Standards document indicates file2 is not supposed to be inferred as stdin [1] * Either file1 or file2 can be specified as '-' for comparison against stdin * test1: error: no args: perl cmp * test2: error: bad option: perl cmp -x * test3: error: file2 omitted: perl cmp test.txt * test4: error: two stdins: perl cmp - - * test5: compare stdin with file bc: echo '#!/user/bing' | perl cmp - bc * test6: skip 1 byte of file1: perl cmp ar awk 1 * test7: skip 1 byte of file1 and file2: perl cmp ar awk 1 1 * test8: error: too many args: perl cmp ar awk 1 1 1 1. https://pubs.opengroup.org/onlinepubs/009604499/utilities/cmp.html
- Loading branch information