#!/bin/bash flags=( -Q "-E -B" "-E -L" "-B -L" ) for f in "${flags[@]}" ; do gcc-config ${f} && exit 1 done gcc-config -h >/dev/null