This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: contrib/gcc_update: silent mode
Alexandre Oliva <aoliva@redhat.com> writes:
> 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.
Argh. I always get that backward.
> ${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?
It's got shell functions in it. I'm pretty sure every shell that
supports functions supports ${var:+word}.
zw