The "stop parsing whatever comes next as getopt flags" marker (--), while good practice (especially after a "read from stdin" one), is unneeded here, as there isn't anything passed after it.
What did fix it is running it directly, preventing the pipe from being quoted, which effectively broke the pipeline, since there was no longer a pipeline ^^.
|