PATCH: update other config.* files

Alexandre Oliva aoliva@redhat.com
Sun Feb 24 03:43:00 GMT 2002


On Feb 24, 2002, Daniel Jacobowitz <drow@mvista.com> wrote:

> #!/bin/sh
> # Use the top-level config.guess so that we don't have two of them.
> guesssys=`echo $0 | sed 's|config.guess|../config.guess|'`
> exec ${guesssys} "$@"

I'd make this:

guesssys=`echo $0 | sed 's|config\.guess$|../config.guess|'`
exec ${guesssys} ${1+"$@"}

which makes the sed command slightly safer and makes sure we don't
pass an empty argument to the real config.guess when no arguments were
passed to us.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer



More information about the Binutils mailing list