The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: chet.ramey@case.edu (Chet Ramey)
Subject: [TUHS] redirection wildness in v7
Date: Thu, 9 Nov 2017 16:39:25 -0500	[thread overview]
Message-ID: <c9b371ef-3018-1f1e-baa3-318796b06b5f@case.edu> (raw)
In-Reply-To: <alpine.BSF.2.21.1711100835060.4766@aneurin.horsfall.org>

On 11/9/17 4:36 PM, Dave Horsfall wrote:
> On Thu, 9 Nov 2017, Chet Ramey wrote:
> 
>>> $ <word | sed 20q
>>
>> A null command consisting of only a redirection (effectively a no-op).
> 
> With the side-effect of opening "word" (which could be a device).

Quite true. The redirection is the only thing that happens.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet at case.edu    http://cnswww.cns.cwru.edu/~chet/


  reply	other threads:[~2017-11-09 21:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-09 14:34 Will Senn
2017-11-09 15:04 ` Ralph Corderoy
2017-11-09 15:38   ` Will Senn
2017-11-20 23:38     ` Ralph Corderoy
2017-11-09 15:30 ` Chet Ramey
2017-11-09 21:36   ` Dave Horsfall
2017-11-09 21:39     ` Chet Ramey [this message]
2017-11-09 15:30 ` Dan Cross
2017-11-09 15:42   ` Will Senn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c9b371ef-3018-1f1e-baa3-318796b06b5f@case.edu \
    --to=chet.ramey@case.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).