we want to exclude some names from variable
# echo $names
abba begiz altonzon music aolala
# echo $names | grep -o '[^[:space:]]\+'
abba
begiz
altonzon
music
aolala
when we use egrep
in order to exclude the two names
then we get exception about :"shell-init: error retrieving current directory:"
# echo $names | grep -o '[^[:space:]]\+' | egrep -iv "abba|begiz"
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
altonzon
music
aolala
how to avoid this exception?