Skip to content

What's wrong in this prepipe command? #539

Answered by johnkerl
aborruso asked this question in Q&A
Discussion options

You must be logged in to vote

@aborruso what Miller does with mlr --prepipe somecommand file.dat is to popen from the process somecommand < file.dat -- note the <. And it turns out unzip -qc piemonte.zip works while unzip -qc < piemonte.zip does not.

This makes unzip -qc different from most other commands like gunzip which are happy with <.

In fact this is an important distinction to preserve since gunzip foo.gz isn't the same as gunzip < foo.gz -- the latter leaves foo.gz in place; the former removes it and replaces it with the decompressed foo`.

What we need is a --prepipe-no-less-than or something.

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
1 reply
@johnkerl
Comment options

Comment options

You must be logged in to vote
11 replies
@johnkerl
Comment options

@aborruso
Comment options

@johnkerl
Comment options

@aborruso
Comment options

@johnkerl
Comment options

Answer selected by aborruso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants