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
55e8a07a
Commit
55e8a07a
authored
Mar 12, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move __convert_glob__to_regexp to epm-sh-functions
parent
def27af5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
epm-search
bin/epm-search
+0
-7
epm-sh-functions
bin/epm-sh-functions
+8
-0
No files found.
bin/epm-search
View file @
55e8a07a
...
...
@@ -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
()
...
...
bin/epm-sh-functions
View file @
55e8a07a
...
...
@@ -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
"
...
...
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