cat(1) implemented in rust
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.
src
.gitignore
Cargo.lock
Cargo.toml
LICENSE
README.md

README.md

rscat

cat(1) implemented in rust as a learning exercise.

Passes cat_linter:

$ cargo build --release
$ cat_linter target/release/rscat
Linting cat against ../rscat/target/release/rscat

Checking `cat /tmp/cat_linter_file1`:
  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 "hi\nnow" | cat`
  Output matches
  Exit matches

Checking `echo "how\nnow\nbrown\ncow" | cat /tmp/cat_linter_file1 - /tmp/cat_linter_file2`
  Output matches
  Exit matches

Checking `echo "how\nnow\nbrown\ncow" | cat /tmp/cat_linter_file1 - /tmp/non-existent-file - /tmp/cat_linter_file2`
  Output matches
  Exit matches

License

cargo run -q LICENSE