Clear stateChar before pipe in extglob