Linter script to compare cat(1) behaviour to another binary
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
cat_linter

README.md

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.