chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
udevadm: test - remove --force option
[elogind.git]
/
extras
/
rule_generator
/
rule_generator.functions
diff --git
a/extras/rule_generator/rule_generator.functions
b/extras/rule_generator/rule_generator.functions
index aaf66a6fa05dc4b514277067bf4d1d1f24043439..b972091615d424c56149dc6944055b64c44665b4 100644
(file)
--- a/
extras/rule_generator/rule_generator.functions
+++ b/
extras/rule_generator/rule_generator.functions
@@
-92,8
+92,7
@@
find_all_rules() {
local linkre="$2"
local match="$3"
local linkre="$2"
local match="$3"
- local search='[[:space:],]'"$key"'"('"$linkre"')"[[:space:]]*(,.*|\\|)$'
-
+ local search='.*[[:space:],]'"$key"'"('"$linkre"')".*'
echo $(sed -n -r -e 's/^#.*//' -e "${match}s/${search}/\1/p" \
$RO_RULES_FILE \
$([ -e $RULES_FILE ] && echo $RULES_FILE) \
echo $(sed -n -r -e 's/^#.*//' -e "${match}s/${search}/\1/p" \
$RO_RULES_FILE \
$([ -e $RULES_FILE ] && echo $RULES_FILE) \