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
24243d8e
Commit
24243d8e
authored
Feb 04, 2014
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check for egrep's --color
parent
8f9f7781
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
epm-search
bin/epm-search
+2
-2
epm-sh-functions
bin/epm-sh-functions
+5
-0
No files found.
bin/epm-search
View file @
24243d8e
...
@@ -130,9 +130,9 @@ __epm_search_make_grep()
...
@@ -130,9 +130,9 @@ __epm_search_make_grep()
[
-n
"
$COLO
"
]
&&
COLO
=
"
$COLO
|"
[
-n
"
$COLO
"
]
&&
COLO
=
"
$COLO
|"
COLO
=
"
$COLO$i
"
COLO
=
"
$COLO$i
"
done
done
# FIXME -n on MacOS?
if
[
-n
"
$list
"
]
;
then
if
[
-n
"
$list
"
]
;
then
echo
-n
" | egrep -i --color
--
\"
(
$COLO
)
\"
"
echo
n
" | egrep -i
$EGREPCOLOR
--
\"
(
$COLO
)
\"
"
fi
fi
}
}
...
...
bin/epm-sh-functions
View file @
24243d8e
...
@@ -45,6 +45,11 @@ check_tty()
...
@@ -45,6 +45,11 @@ check_tty()
[
-n
"
$TERM
"
]
||
TERM
=
dumb
[
-n
"
$TERM
"
]
||
TERM
=
dumb
export
TERM
export
TERM
# egrep from busybox may not --color
if
egrep
--help
|
grep
-q
--
"--color"
;
then
EGREPCOLOR
=
"--color"
fi
which tput
>
/dev/null 2>/dev/null
||
return
which tput
>
/dev/null 2>/dev/null
||
return
# FreeBSD does not support tput -S
# FreeBSD does not support tput -S
echo
| tput
-S
>
/dev/null 2>/dev/null
||
return
echo
| tput
-S
>
/dev/null 2>/dev/null
||
return
...
...
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