libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [FYI] Correct illegal sed expression for $basename


From: Alexandre Oliva
Subject: Re: [FYI] Correct illegal sed expression for $basename
Date: 02 Apr 2004 16:06:38 -0300
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

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?

-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   address@hidden, gcc.gnu.org}
Free Software Evangelist  address@hidden, gnu.org}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]