https://github.com/caius/cat_linter
Linter script to compare cat(1) behaviour to another binary
https://github.com/caius/cat_linter
cat unix-command
Last synced: about 1 year ago
JSON representation
Linter script to compare cat(1) behaviour to another binary
- Host: GitHub
- URL: https://github.com/caius/cat_linter
- Owner: caius
- License: mit
- Created: 2016-01-09T19:24:44.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2021-08-26T22:07:12.000Z (almost 5 years ago)
- Last Synced: 2025-03-21T02:12:31.750Z (over 1 year ago)
- Topics: cat, unix-command
- Language: Shell
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cat Linter
Script to compare `cat(1)` behaviour to another binary. Test it by running against `cat`:
$ ./cat_linter cat
Linting cat against cat
Checking `cat /tmp/cat_linter_file1`:
Output matches
Exit matches
Checking `echo "hi\nnow" | cat`
Output matches
Exit matches
Checking `cat /tmp/cat_linter_file1 /tmp/cat_linter_file2`
Output matches
Exit matches
Checking `cat /tmp/cat_linter_file1 non-existent-file `
Output matches
Exit matches
Checking `echo "how\nnow\nbrown\ncow" | cat /tmp/cat_linter_file1 - /tmp/cat_linter_file2`
Output matches
Exit matches
## License
See LICENSE.