Commit e2771fc5 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-sh-functions: improve startwith

parent 43d6ce06
......@@ -224,7 +224,8 @@ rihas()
startwith()
{
# rhas "$1" "^$2"
[[ "$1" = ${2}* ]]
[ "${1:0:${#2}}" = "$2" ]
#[[ "$1" = ${2}* ]]
}
is_abs_path()
......
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