This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Comments wanted on an idea of changing the binutils version handling
- From: Joe Buck <Joe dot Buck at synopsys dot com>
- To: c dot christian dot joensson at telia dot com (Christian Jönsson)
- Cc: gcc at gcc dot gnu dot org (Gcc)
- Date: Thu, 7 Mar 2002 09:25:18 -0800 (PST)
- Subject: Re: Comments wanted on an idea of changing the binutils version handling
> For the main [binutils] branch, every utility responds to --version like this
>
> objdump (GNU binutils) 2.12.90 20020307 (experimental)
> Copyright 2002 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms of
> the GNU General Public License. This program has absolutely no warranty.
Why are you printing the copyright? This is inconsistent with other GNU
tools, which just print a short one line string. Because the string is
one line it's easy to use in shell substitutions.
For example:
gcc_version=`gcc --version`
Which is more useful: setting gcc_version to "3.0.4" (current behavior)
or setting it to "3.0.4 Copyright 2002 Free Software Foundation blah blah"