Red Hat Bugzilla – Bug 153658
grep -qE ...\B in /etc/init.d/autofs : not right
Last modified: 2007-11-30 17:11:03 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.6) Gecko/20050321 Firefox/1.0.2
Description of problem:
The use of \B (instead of \b?) in a few places in /etc/init.d/autofs just
looks plain wrong. I found this when I added --debug onto a line in
/etc/auto.master, and the option failed to get picked up. What ultimately
happens comes down to what's in this tiny script:
echo "--debug" | grep -qE -- '\B-(d\b|-debug\b)'
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. sh -x /etc/init.d/autofs any-command
2. look out for an action like that above
Actual Results: as described
Expected Results: as described
Created attachment 112686 [details]
Patch to set LC_ALL in the init script
It appears the problem is being caused by LC_ALL not being set in your init
script. This is fixed in future autofs RPMS and can be fixed in your
installation by applying the patch to your /etc/init.d/autofs init script.
Please let us know by filing a comment in this bug if the fix works for you.
Yes, the fix works. (And makes my head hurt :-) Nice work.