Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
87f41d52
Commit
87f41d52
authored
Feb 04, 2014
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use echon instead echo -n
parent
24243d8e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
epm-search
bin/epm-search
+3
-3
epm-sh-functions
bin/epm-sh-functions
+10
-2
No files found.
bin/epm-search
View file @
87f41d52
...
...
@@ -108,17 +108,17 @@ __epm_search_make_grep()
#list=$(strip_spaces $list | 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
# http://stackoverflow.com/questions/10110051/grep-with-two-strings-logical-and-in-regex?rq=1
for
i
in
$list
;
do
# FIXME -n on MacOS?
echo
-
n
" | egrep -i --
\"
$i
\"
"
echon
" | egrep -i --
\"
$i
\"
"
done
if
[
"
$short
"
]
;
then
echo
-
n
" | sed -e
\"
s| .*||g
\"
"
echon
" | sed -e
\"
s| .*||g
\"
"
fi
# FIXME: move from it
...
...
bin/epm-sh-functions
View file @
87f41d52
...
...
@@ -83,6 +83,14 @@ echover()
echo
"
$*
"
>
&2
}
# echo string without EOL
# FIXME: -n on MacOS?
echon
()
{
echo
-n
"
$@
"
}
# Used DISTRNAME
set_target_pkg_env
()
{
...
...
@@ -150,14 +158,14 @@ sudocmd_foreach()
get_firstarg
()
{
echo
-
n
"
$1
"
echon
"
$1
"
}
get_lastarg
()
{
local
lastarg
eval
lastarg
=
\$
{
$#}
echo
-
n
"
$lastarg
"
echon
"
$lastarg
"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment