[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [FYI] Correct illegal sed expression for $basename
From: |
Scott James Remnant |
Subject: |
Re: [FYI] Correct illegal sed expression for $basename |
Date: |
Sat, 03 Apr 2004 18:06:18 +0100 |
On Fri, 2004-04-02 at 16:06 -0300, Alexandre Oliva wrote:
> On Feb 12, 2004, Scott James Remnant <address@hidden> wrote:
>
> > +2004-02-12 Scott James Remnant <address@hidden>
> > +
> > + * ltmain.in: Correct definition of basename sed expression to
> > + not include single quotes.
>
> > -basename="$SED 's,^.*/,,g'"
> > +basename="$SED s,^.*/,,g"
>
> This is a tiny little bit dangerous. What if there's directory named
> s,^.fnord in the cwd, and it contains a file named ,,g?
>
It was part of a two-part patch, the second part
(keybuk-basename-sed.patch) removed the $SED from there.
Scott
--
Have you ever, ever felt like this?
Had strange things happen? Are you going round the twist?
signature.asc
Description: This is a digitally signed message part