mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ville Herva <vherva@niksula.hut.fi>
To: Doug McNaught <doug@wireboard.com>
Cc: Riley Williams <rhw@MemAlpha.cx>,
	Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: Need blocking /dev/null
Date: Thu, 1 Nov 2001 09:27:10 +0200	[thread overview]
Message-ID: <20011101092709.I1504@niksula.cs.hut.fi> (raw)
In-Reply-To: <Pine.LNX.4.21.0110312256030.28028-100000@Consulate.UFP.CX> <m31yjjz6ws.fsf@belphigor.mcnaught.org>
In-Reply-To: <m31yjjz6ws.fsf@belphigor.mcnaught.org>; from doug@wireboard.com on Wed, Oct 31, 2001 at 07:11:47PM -0500

On Wed, Oct 31, 2001 at 07:11:47PM -0500, you [Doug McNaught] claimed:
> Riley Williams <rhw@MemAlpha.cx> writes:
> 
> The Bourne shell is more perverse than you realize:
> 
> $ exec 3>&1; find / -name "wanted-but-lost-download" 2>&1 1>&3 3>&- | eat
> 
> [stolen from "Csh Programming Considered Harmful" by Tom Christiansen]

Wow. I actually played a minute with zsh, but didn't find a way... I was
pretty sure, though, that it was doable.
 
> Horrible, but does work.  ;) 
> 
> > > zerofill | head -c 1440k > /tmp/floppy.img
> > 
> > How does zerofill know when to stop writing zeros out?
> 
> Easy, it gets EPIPE on the write (or gets killed by SIGPIPE if it's
> stupid). 

Stupid... Or lazy ;).
 
> > > ssh foo@bar | block
> > 
> > Which of my examples is this an equivalent to? I don't recognise it.
> 
> None; he's referring to the /dev/block example that started the
> thread.

Yep.

> I'm still happy to keep /dev/null and /dev/zero.  ;)

So am I. Perhaps it is better to let this thread die...


-- v --

v@iki.fi

  reply	other threads:[~2001-11-01  7:27 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-29 21:07 Marko Rauhamaa
2001-10-29 21:24 ` Alan Cox
2001-10-30  3:52   ` Marko Rauhamaa
2001-10-30  7:02     ` Tim Connors
2001-10-30 16:04       ` Marko Rauhamaa
2001-10-31  0:51     ` Riley Williams
2001-10-31  9:23       ` Ville Herva
2001-10-31 23:13         ` Riley Williams
2001-11-01  0:11           ` Doug McNaught
2001-11-01  7:27             ` Ville Herva [this message]
2001-11-01  7:52             ` Abramo Bagnara
2001-11-01 23:51             ` Riley Williams
2001-11-02 19:53               ` Ville Herva
2001-11-02 20:04               ` John Adams
2001-11-02 20:32                 ` Ville Herva
2001-11-02 20:46                   ` Tim Walberg
2001-11-05 22:08                     ` Andreas Schwab
2001-11-01  7:24           ` Ville Herva
2001-10-29 21:45 ` Hugh Dickins
2001-10-29 23:03   ` elko
2001-10-29 23:12     ` Mike Fedyk

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=20011101092709.I1504@niksula.cs.hut.fi \
    --to=vherva@niksula.hut.fi \
    --cc=doug@wireboard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rhw@MemAlpha.cx \
    /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

all inboxes | Powered by JetHome®