This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: update other config.* files


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]