[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not wri
From: |
Rodney W. Grimes |
Subject: |
Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout |
Date: |
Wed, 27 Jan 2021 04:43:53 -0800 (PST) |
> On Sun, Jan 24, 2021 at 9:04 PM Bernhard Voelker
> <mail@bernhard-voelker.de> wrote:
> >
> > An off-tech argument: ask a local plumber if he'd would ever use
> > a tee piece instead of a pipe end piece. I guess he would only
> > if he wouldn't have anything else at hand.
>
> According to POSIX, tee writes to "zero or more files."[1] So the
> "local plumber" analogy already doesn't hold, because a plumber would
> never put in a tee and then immediately cap it off so that the flow
Actually plumbers do this all the time, its a stub out for future
additions/alterations. There is also a special case of it done
when plumbing air/gas lines called a trap.
> can only go to one place, but commands like `echo foo | tee | tee |
> tee` are already explicitly allowed.
>
> > A word to the proposed patch: what should happen, if the user does
> > not give a file?
> > A | B | tee -q
> > The patch just silently ignored that situation which feels wrong.
>
> Personally, I like the idea of only having to type `echo foo | tee -q`
> instead of `echo foo > /dev/null`, so I think the patch indeed does
> the right thing in that case.
>
> -Alex
>
> [1] https://pubs.opengroup.org/onlinepubs/9699919799/utilities/tee.html
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
>
--
Rod Grimes rgrimes@freebsd.org
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, (continued)
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, Alejandro Colomar (man-pages), 2021/01/26
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, Rodney W. Grimes, 2021/01/26
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, L A Walsh, 2021/01/26
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, Christian Groessler, 2021/01/27
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, L A Walsh, 2021/01/27
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, Fabrice BAUZAC-STEHLY, 2021/01/29
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, Eric Pruitt, 2021/01/29
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, Rodney W. Grimes, 2021/01/27
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, Alex Henrie, 2021/01/26
- (resend) - simple fix to eliminate the need for a new feature in 'tee'. (was Re: [PATCH v3 (resend)] tee: ...), L A Walsh, 2021/01/26
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout,
Rodney W. Grimes <=
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, Philipp-Joachim Ost, 2021/01/25
- Re: [PATCH] tee: Add -q, --quiet option to not write to stdout, Eric Pruitt, 2021/01/21
- Re: [PATCH] tee: Add -q, --quiet option to not write to stdout, Christian Groessler, 2021/01/21
- Re: [PATCH] tee: Add -q, --quiet option to not write to stdout, Jeffrey Walton, 2021/01/21
- Re: [PATCH] tee: Add -q, --quiet option to not write to stdout, Eric Pruitt, 2021/01/21
- Re: [PATCH] tee: Add -q, --quiet option to not write to stdout, Erik Auerswald, 2021/01/22
- Re: [PATCH] tee: Add -q, --quiet option to not write to stdout, Bernhard Voelker, 2021/01/21
Re: [PATCH] tee: Add -q, --quiet option to not write to stdout, Jeffrey Walton, 2021/01/21
Use tq instead of tee: Add -q, --quiet option to not write to stdout, L A Walsh, 2021/01/25