I hope someone has an idea about my issue.
The current minimal example fails, if I'm trying to assign a command/pipeline output to a variable due to the grep "[[:space:]]" expression for bash in the strict mode.
#/bin/bash
set -euo pipefail
egrep -v '>' file | grep "[[:space:]]" | wc -l
var=`egrep -v '>' file | grep "[[:space:]]" | wc -l`
echo $var
var=$(egrep -v '>' file | grep "[[:space:]]" | wc -l) fails as well. I'm out of ideas.