Skip to content

caius/cat_linter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Linter script to compare cat(1) behaviour to another binary

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages