Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature Request: Use `<` and `>` for primary input/output #39
The Current Usage
(I have a script,
The Ideal Usage
Since XProc requires one primary input and one primary output, would it be possible to support using standard *nix redirect characters to specify the primary I/O ports? (
The idea seems very appealing to me somehow.
What about sequences?
A couple of ideas come to mind:
You can do that. Sort of. The magic filename "-" stands for STDIN or STDOUT.
calabash -isource=- -oresult=- < input_file.xml > output_file.xml pipeline.xpl
Is that sufficient for your needs, or would you really like it to be totally implicit: if there's no binding for the primary input port, assume it's STDIN. (I think STDOUT is already handled this way.)
I don't think that would be unreasonable.