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
a70346b6
Commit
a70346b6
authored
Nov 02, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ep-seach: use ~ for negate and ^ for a begin of line in __epm_search_make_grep
parent
df6d1cc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
epm-search
bin/epm-search
+3
-4
No files found.
bin/epm-search
View file @
a70346b6
...
...
@@ -109,7 +109,6 @@ esac
LANG
=
C docmd
$CMD
$string
}
# TODO: use ^ as first word, use ~ for negate, for epmqp too
# produce grep sequence
__epm_search_make_grep
()
{
...
...
@@ -120,8 +119,8 @@ __epm_search_make_grep()
local
listN
=
for
i
in
$@
;
do
case
"
$i
"
in
^
*
)
# will clean from
^ later (and have the bug here with empty arg if run with one ^
only)
~
*
)
# will clean from
~ later (and have the bug here with empty arg if run with one ~
only)
listN
=
"
$listN
$i
"
;;
*
)
...
...
@@ -131,7 +130,7 @@ __epm_search_make_grep()
done
#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"
)
if
[
-n
"
$short
"
]
;
then
echon
" | sed -e
\"
s| .*||g
\"
"
...
...
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