joakim666 / colortail

Like the tail command line utility but with colors
GNU General Public License v2.0
125 stars 23 forks source link

colortail sends error text out to stdout instead of stderr #3

Closed phord closed 6 years ago

phord commented 13 years ago

Error responses should go to stderr so as to avoid worsening scripted badness.

colortail /foobar|hexdump -C
00000000  63 6f 6c 6f 72 74 61 69  6c 3a 20 46 61 69 6c 65  |colortail: Faile|
00000010  64 20 74 6f 20 6f 70 65  6e 20 66 69 6c 65 3a 20  |d to open file: |
00000020  2f 66 6f 6f 62 61 72 0a  3d 3d 3e 20 2f 66 6f 6f  |/foobar.==> /foo|
00000030  62 61 72 20 3c 3d 3d 0a                           |bar <==.|
00000038
joakim666 commented 6 years ago

Closing issue after merge of fix to master branch.