You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
verso main.rs lib.rs | recto build chap1.tex chap2.tex blog/home.md
Pipes are pretty neat for that, I like it!
I guess the downside is that pipefail isn't on by default in most shells, so it might confuse the users if verso fails but recto succeeds nevertheless?
This won't be an issue at the moment I guess since if verso terminates early, you wouldn't have valid JSON emitted which would make recto fail anyway. So just keeping it here, perhaps it's good to emphasise that pipes are safe to use in this case so people don't have to worry about it.
The text was updated successfully, but these errors were encountered:
Yep, if verso fails it'll cause bad input to recto. This will get more complicated in the parallelized/streaming version I want to implement but for now it's not a huge issue.
One thing this does remind me of, though, is that the error messages need to go to stderr or they'll corrupt the pipe... I should replace println! with eprintln!.
verso main.rs lib.rs | recto build chap1.tex chap2.tex blog/home.md
Pipes are pretty neat for that, I like it!
I guess the downside is that
pipefail
isn't on by default in most shells, so it might confuse the users if verso fails but recto succeeds nevertheless?This won't be an issue at the moment I guess since if verso terminates early, you wouldn't have valid JSON emitted which would make recto fail anyway. So just keeping it here, perhaps it's good to emphasise that pipes are safe to use in this case so people don't have to worry about it.
The text was updated successfully, but these errors were encountered: