nineml / coffeepot

CoffeePot releases and website pages, see nineml/nineml
https://coffeepot.nineml.org/
13 stars 2 forks source link

Can Coffeepot 3.2.6 read input from stdin? #106

Open cmsmcq opened 7 months ago

cmsmcq commented 7 months ago

I sometimes wish that I could feed input from stdin to Coffeepot. Is that possible?

ndw commented 7 months ago

"C. M. Sperberg-McQueen" @.***> writes:

I sometimes wish that I could feed input from stdin to Coffeepot. Is that possible?

Yes, with the slightly cryptic option: “-i:-”.

That is, if you tell it the filename to read from is a single hyphen, it will read from stdin. That appears to work only for -i: and not for -g: if that matters. If it matters, I’ll fix it, it’s just an oversight, I assume.

                                    Be seeing you,
                                      norm

-- Norm Tovey-Walsh @.***> https://norm.tovey-walsh.com/

For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled.--Richard Feynman