This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: contrib/gcc_update: silent mode


On Mar 18, 2005, Zack Weinberg <zack@codesourcery.com> wrote:

> This patch adds a command-line option --silent to contrib/gcc_update,
> which makes it not print any of its chatty messages.

Unfortunately, ${silent+-Q} expands to -Q even if silent is blank.
${var+x} expands to x unless var is unset.  ${var:+x} would do what
you meant, but it's not as portable, and unset isn't portable either.

How portable do we want gcc_update to be?

-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}


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