use bashopts for subshell