-
Notifications
You must be signed in to change notification settings - Fork 0
No output for mkcat <filename> #1
Comments
Thanks for the report @chocolateboy, I have reproduced this problem. It appears to be to do with the node 10.x.x releases and possibly some changes to Buffer handling, I am seeing this:
I can confirm it works as expected on 8.9.0. I will need to look in to this some more to determine the scope of changes that would be required to support 10.x.x. |
I can confirm that the tests pass in It is also related to trying to combine stdin with files in the same style as I can quickly hack it by testing for I am not convinced that it is worth me spending the time on this until a 10 LTS version is released as this may well get fixed upstream and you can continue to use mkdoc with 8 and 9 for the moment. Looking at the 10 changelog I see this PR with two changes to stdin: I am unsure whether to raise an issue upstream. Thoughts @chocolateboy? |
If there's an issue supporting both (stdin and argv), maybe drop support for stdin? The documentation suggests it doesn't work reliably:
- and it's easy to work, around e.g. by using
|
(Moved from mkdoc/mkdoc#1)
The README states that the usage for mkcat is:
mkcat README.md | mkout
But it appears to ignore the filename argument, and produces no output:
$ mkcat README.md | wc -l 0
This works:
$ cat README.md | mkcat
So I would expect this to work as well:
$ mkcat < README.md
- which it does, in part (it produces the expected output), but it also dies with an error:
The text was updated successfully, but these errors were encountered: