public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Stephen Bennett <spb@gentoo.org>
To: gentoo-dev@robin.gentoo.org
Subject: Re: [gentoo-dev] perl, sed and non-gsed
Date: Tue, 29 Mar 2005 18:16:43 +0000	[thread overview]
Message-ID: <1112120203.23361.12.camel@localhost> (raw)
In-Reply-To: <200503291724.01161@enterprise.flameeyes.is-a-geek.org>

On Tue, 2005-03-29 at 17:23 +0200, Diego "Flameeyes" Pettenò wrote:
> On Tuesday 29 March 2005 06:58, Aaron Walker wrote:
> > FYI Ciaran and Diego, sed is aliased to gsed on BSD.
> I know, but this is, imho, an ugly workaround :)

It's an ugly workaround, and one that i'd like to remove if possible.
Right now that's a fairly big 'if', but one possible way to do it
suggests itself:

- Modify the sed ebuild to install a gsed -> sed symlink on GNU systems.
- Fix sed usages in the tree where that's practical / easy (such as -i /
-e argument ordering). Otherwise, explicitly call gsed if we need GNU
extensions that aren't present in BSD / others.
- Remove the alias in non-gnu systems' profile.bashrcs.

As ciaranm said earlier, GNU sed does have a lot of useful extensions;
however BSD sed (for example) supports most of them, and I can't help
but feel it'd be nice to be able to use a platform's native sed wherever
possible. The above scheme is just what seems like the obvious solution
that shouldn't affect GNU systems too much, but lets us use native apps
where possible. Where those native apps suck too much then those
profiles can just keep the gsed alias.

At the moment, this is just a random thought that occurred and got
written down, so don't be surprised if I've overlooked something.

Any comments? Suggestions, flames? (Except from ciaranm, of course...)


--
gentoo-dev@gentoo.org mailing list


  parent reply	other threads:[~2005-03-29 18:12 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-28 16:06 [gentoo-dev] perl, sed and non-gsed Diego "Flameeyes" Pettenò
2005-03-28 16:34 ` David Morgan
2005-03-28 17:28 ` Jan Brinkmann
2005-03-28 17:31 ` Ciaran McCreesh
2005-03-28 17:43   ` Diego "Flameeyes" Pettenò
2005-03-28 17:51     ` Ciaran McCreesh
2005-03-28 18:38       ` Mike Frysinger
2005-03-28 17:52   ` Daniel Ostrow
2005-03-29  4:58   ` Aaron Walker
2005-03-29 15:23     ` Diego "Flameeyes" Pettenò
2005-03-29 16:56       ` Ciaran McCreesh
2005-03-29 17:13         ` Diego "Flameeyes" Pettenò
2005-03-29 18:04           ` Ciaran McCreesh
2005-03-29 18:18             ` Diego "Flameeyes" Pettenò
2005-03-29 18:16       ` Stephen Bennett [this message]
2005-03-29 18:55         ` Ciaran McCreesh
2005-04-06 21:08         ` Luca Barbato
2005-04-06 21:50           ` Diego "Flameeyes" Pettenò
2005-04-07  6:26           ` Brian Harring
2005-04-07  6:33             ` Luca Barbato
2005-04-07 10:22               ` Stroller
2005-04-07 11:04                 ` Brian Harring
2005-04-07 12:02                   ` Ciaran McCreesh
2005-04-07 12:29                     ` Brian Harring
2005-04-07 12:36                       ` Alec Warner
2005-04-07 12:46                         ` Brian Harring
2005-04-07 12:51                           ` Ciaran McCreesh
2005-04-07 13:15                             ` Brian Harring
2005-04-07 13:23                               ` Ciaran McCreesh
2005-04-07 13:17                             ` Stefan Sperling
2005-04-07 13:23                               ` Mike Frysinger
2005-04-07 13:57                                 ` Stefan Sperling
2005-04-07 13:24                               ` Ciaran McCreesh
2005-04-07 13:36                                 ` [gentoo-dev] portage and operating from a non / prefix\x0f; was: " Brian Harring
2005-04-07 13:43                                   ` Ciaran McCreesh
2005-04-07 13:40                                 ` [gentoo-dev] " Stefan Sperling
2005-04-07 16:49                   ` Lina Pezzella
2005-04-07 12:01                 ` Ciaran McCreesh
2005-04-07 12:31                   ` Diego "Flameeyes" Pettenò
2005-04-07 12:39                     ` Ciaran McCreesh
2005-04-07 16:58                       ` Lina Pezzella
2005-04-07 17:02                         ` Ciaran McCreesh
2005-04-07 20:57                           ` Lina Pezzella
2005-04-07 16:54                     ` Lina Pezzella
2005-04-07 15:17                 ` Luca Barbato
2005-04-07 15:21                   ` Ciaran McCreesh
2005-04-07 15:28                   ` Diego "Flameeyes" Pettenò
2005-04-07 15:39                     ` Luca Barbato
2005-04-07 15:51                       ` Diego "Flameeyes" Pettenò
2005-04-07 17:03                   ` Lina Pezzella
2005-04-07 17:14                     ` Luca Barbato
2005-04-07 20:58                       ` Lina Pezzella
2005-03-28 17:57 ` Hasan Khalil

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=1112120203.23361.12.camel@localhost \
    --to=spb@gentoo.org \
    --cc=gentoo-dev@gentoo.org \
    --cc=gentoo-dev@robin.gentoo.org \
    /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