block: setting bash flags on subshells