Commit 55e8a07a authored by Vitaly Lipatov's avatar Vitaly Lipatov

move __convert_glob__to_regexp to epm-sh-functions

parent def27af5
......@@ -133,13 +133,6 @@ LC_ALL=C docmd $CMD $string
epm play $short --list-all | sed -e 's|^ *||g' -e 's|[[:space:]]\+| |g' -e "s|\$| (use \'epm play\' to install it)|"
}
# copied from eget's filter_glob
# check man glob
__convert_glob__to_regexp()
{
# translate glob to regexp
echo "$1" | sed -e "s|\*|.*|g" -e "s|?|.|g"
}
# ^mc.*ext -> mc
_clean_from_regexp()
......
......@@ -703,6 +703,14 @@ esu()
fi
}
# copied from eget's filter_glob
# check man glob
__convert_glob__to_regexp()
{
# translate glob to regexp
echo "$1" | sed -e "s|\*|.*|g" -e "s|?|.|g"
}
regexp_subst()
{
local expression="$1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment