summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/lib/libreblacklist2
-rw-r--r--test/lib-blacklist-test.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libreblacklist b/src/lib/libreblacklist
index bbba1ce..6800526 100755
--- a/src/lib/libreblacklist
+++ b/src/lib/libreblacklist
@@ -122,7 +122,7 @@ if [[ "${0##*/}" == libreblacklist ]]; then
cmd=$(<<<"$sec" sed -n '$s/^blacklist-//p')
if [[ "$cmd" == "$1" ]]; then
<<<"$sec" sed '$d' |
- while read -r line; do _ "$line"; done |
+ while read -r line; do print "$line"; done |
sed "s/blacklist-/${0##*/} /g" |
fmt -us
return 0
diff --git a/test/lib-blacklist-test.sh b/test/lib-blacklist-test.sh
index 9c8e84d..0083242 100644
--- a/test/lib-blacklist-test.sh
+++ b/test/lib-blacklist-test.sh
@@ -127,7 +127,7 @@ it_displays_help_when_given_h() {
it_displays_help_when_given_h_cat() {
LANG=C libreblacklist -h cat >$tmpdir/stdout 2>$tmpdir/stderr
- [[ "$(sed 1q $tmpdir/stdout)" =~ 'Usage: libreblacklist cat' ]]
+ [[ "$(sed 1q $tmpdir/stdout)" == 'Usage: libreblacklist cat' ]]
[[ -z "$(cat $tmpdir/stderr)" ]]
}