Commit 87f41d52 authored by Vitaly Lipatov's avatar Vitaly Lipatov

use echon instead echo -n

parent 24243d8e
...@@ -108,17 +108,17 @@ __epm_search_make_grep() ...@@ -108,17 +108,17 @@ __epm_search_make_grep()
#list=$(strip_spaces $list | sed -e "s/ /|/g") #list=$(strip_spaces $list | sed -e "s/ /|/g")
listN=$(strip_spaces $listN | sed -e "s/ /|/g" | sed -e "s/\^//g") listN=$(strip_spaces $listN | sed -e "s/ /|/g" | sed -e "s/\^//g")
[ -n "$listN" ] && echo -n " | egrep -i -v -- \"$listN\"" [ -n "$listN" ] && echon " | egrep -i -v -- \"$listN\""
# FIXME: The World has not idea how to do grep both string # FIXME: The World has not idea how to do grep both string
# http://stackoverflow.com/questions/10110051/grep-with-two-strings-logical-and-in-regex?rq=1 # http://stackoverflow.com/questions/10110051/grep-with-two-strings-logical-and-in-regex?rq=1
for i in $list ; do for i in $list ; do
# FIXME -n on MacOS? # FIXME -n on MacOS?
echo -n " | egrep -i -- \"$i\"" echon " | egrep -i -- \"$i\""
done done
if [ "$short" ] ; then if [ "$short" ] ; then
echo -n " | sed -e \"s| .*||g\"" echon " | sed -e \"s| .*||g\""
fi fi
# FIXME: move from it # FIXME: move from it
......
...@@ -83,6 +83,14 @@ echover() ...@@ -83,6 +83,14 @@ echover()
echo "$*" >&2 echo "$*" >&2
} }
# echo string without EOL
# FIXME: -n on MacOS?
echon()
{
echo -n "$@"
}
# Used DISTRNAME # Used DISTRNAME
set_target_pkg_env() set_target_pkg_env()
{ {
...@@ -150,14 +158,14 @@ sudocmd_foreach() ...@@ -150,14 +158,14 @@ sudocmd_foreach()
get_firstarg() get_firstarg()
{ {
echo -n "$1" echon "$1"
} }
get_lastarg() get_lastarg()
{ {
local lastarg local lastarg
eval lastarg=\${$#} eval lastarg=\${$#}
echo -n "$lastarg" echon "$lastarg"
} }
......
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