Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] archive: Refuse to write the archive to a terminal.

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:47:25

Reece Dunn [off-list ref] writes:
2009/9/16 Mikael Magnusson [off-list ref]:
quoted
2009/9/16 Johannes Sixt [off-list ref]:
quoted
Josh Triplett schrieb:
quoted
I considered adding a -f/--force option, like gzip has, but writing an
archive to a tty seems like a sufficiently insane use case that I'll let
whoever actually needs that write the patch for it. ;)
How about '--output -' instead?
You could always just add '|cat'.
Except when running on Windows. Yes MSYS and cygwin provide a version
of cat, but this cannot be guaranteed (e.g. with the series to support
building with MSVC).
In general, autodectection features sometimes fail, so it's good to
have an explicit override option.
The `--output -` / `-o -` syntax looks reasonable
I like this too.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help