aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorCiaran McCreesh <ciaranm@gentoo.org>2005-05-16 21:04:11 +0000
committerCiaran McCreesh <ciaranm@gentoo.org>2005-05-16 21:04:11 +0000
commitb0683fd42e59b816ca7d4252f337fb73b1539bbf (patch)
tree024505da7881bc1b9a3e74b4a8fb3a20d971ecd6 /libs
parentupdate TODO (diff)
downloadeselect-b0683fd42e59b816ca7d4252f337fb73b1539bbf.tar.gz
eselect-b0683fd42e59b816ca7d4252f337fb73b1539bbf.tar.bz2
eselect-b0683fd42e59b816ca7d4252f337fb73b1539bbf.zip
make highlighting work with bash-2
svn path=/trunk/; revision=114
Diffstat (limited to 'libs')
-rw-r--r--libs/output.bash.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/output.bash.in b/libs/output.bash.in
index 6045042..e5e1b89 100644
--- a/libs/output.bash.in
+++ b/libs/output.bash.in
@@ -84,9 +84,9 @@ write_numbered_list() {
# is the text.
apply_text_highlights() {
local restore=${1} text=${2}
- text="${text//\%%%HI%%%/${COLOUR_HI}}"
- text="${text//\%%%WA%%%/${COLOUR_WARN}}"
- text="${text//\%%%RE%%%/${restore}}"
+ text="${text//?%%HI%%%/${COLOUR_HI}}"
+ text="${text//?%%WA%%%/${COLOUR_WARN}}"
+ text="${text//?%%RE%%%/${restore}}"
echo -n "${text}"
}