bug-libtool
[Top][All Lists]
Advanced

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

Re: Libtool Bourne shell portability bug


From: Alexandre Oliva
Subject: Re: Libtool Bourne shell portability bug
Date: 26 Jan 2001 04:53:40 -0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Crater Lake)

On Jan 26, 2001, address@hidden (Michael Sokolov) wrote:

> Is this check really necessary?

Kind of.  The idea is to avoid having grep or sed meta-characters in
tagname, that would lead to unpredictable behavior later on.

> I couldn't think of a way to rewrite it portably.

How about:

  case `$echo "X$tagname" |
        $Xsed -e 
's/[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]//g'` in
  "") ;;
  *)
    echo "$progname: invalid tag name: $tagname" 1>&2
    exit 1
    ;;
  esac

?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  address@hidden, redhat.com}
CS PhD student at IC-Unicamp        address@hidden, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



reply via email to

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