Nate Fischer a2e13b62dc Properly handle directories as arguments (#713)
* fix(cat): do not cat directories

Fixes #707

* fix(head): do not let head() read directories

Also fixes a typo

* fix(sort): do not sort directories

Also fixes a typo

* fix(tail): do not let tail() read directories

Also fixes a typo

* fix(uniq): do not let uniq() read directories

We also had a test which called sort() instead of uniq(), so we never
actually tested the missing-file case. This fixes that as well.

This also throws an error for using a directory as output.

* fix(pipe): fix breakages with piped commands
2017-05-08 22:57:58 -07:00
..
2016-12-20 11:27:02 -08:00
2016-12-20 11:27:02 -08:00
2017-05-02 23:04:56 -07:00
2016-12-20 11:27:02 -08:00
2017-05-02 19:54:56 -07:00
2016-12-20 11:27:02 -08:00
2016-12-20 11:27:02 -08:00
2017-02-02 15:21:58 -08:00
2016-12-20 11:27:02 -08:00