contrib/gcc_update: silent mode
Zack Weinberg
zack@codesourcery.com
Sat Mar 19 00:42:00 GMT 2005
"Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> writes:
> > From: Alexandre Oliva <aoliva at redhat dot com>
> >
> > 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?
>
> Zack - instead of trying to find this elusive portable shell syntax,
> why not just set $silent to "-Q" instead of "t" and put $silent in the
> command line without any decoration?
Because it's not always "-Q". See touch_files_reexec.
zw
More information about the Gcc-patches
mailing list