Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Ciaran McCreesh <ciaran.mccreesh@...>
Subject: Re: newins "-" for standard input?
Date: Mon, 23 Mar 2009 14:24:32 +0000
On Mon, 23 Mar 2009 09:22:06 +0100
Ulrich Mueller <ulm@g.o> wrote:
> Now that "dosed" is going to be banned, what would people think of
> "newins" (and the other "new*" commands) accepting "-" as the first
> argument?

There's a slightly different variation in exheres-0: as well as do* and
new*, there's also here*, which you use like this:

    hereins foo <<'END'
stuff
END

It magically barfs, rather than hanging indefinitely, if you forget to
give it some input.

The rationale for giving it a new name rather than overloading an
existing one is that some of the existing do* utilities don't take just
a single simple filename, so overloading would make the command line
somewhat convoluted.

-- 
Ciaran McCreesh
Attachment:
signature.asc (PGP signature)
Replies:
Re: newins "-" for standard input?
-- Ulrich Mueller
References:
newins "-" for standard input?
-- Ulrich Mueller
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: newins "-" for standard input?
Next by thread:
Re: newins "-" for standard input?
Previous by date:
[undertakers] Packages with updated metadata.xml
Next by date:
Re: updating baselayout PERMS_PROTECT


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.