Bug 153658 - grep -qE ...\B in /etc/init.d/autofs : not right
grep -qE ...\B in /etc/init.d/autofs : not right
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: autofs (Show other bugs)
3
All Linux
medium Severity medium
: ---
: ---
Assigned To: Chris Feist
Brock Organ
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-04 15:48 EDT by Will Partain
Modified: 2007-11-30 17:11 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-04-04 17:53:11 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Patch to set LC_ALL in the init script (305 bytes, patch)
2005-04-04 17:15 EDT, Chris Feist
no flags Details | Diff

  None (edit)
Description Will Partain 2005-04-04 15:48:55 EDT
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:

#!/bin/sh -x
echo "--debug" | grep -qE -- '\B-(d\b|-debug\b)'
echo $?


Version-Release number of selected component (if applicable):
autofs--4.1.3-28

How reproducible:
Always

Steps to Reproduce:
1.  sh -x /etc/init.d/autofs any-command
2.  look out for an action like that above
3.
  

Actual Results:  as described

Expected Results:  as described

Additional info:
Comment 1 Chris Feist 2005-04-04 17:15:44 EDT
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.
Comment 2 Chris Feist 2005-04-04 17:17:51 EDT
Please let us know by filing a comment in this bug if the fix works for you.
Comment 3 Will Partain 2005-04-04 17:43:54 EDT
Yes, the fix works.  (And makes my head hurt :-)  Nice work.

Note You need to log in before you can comment on or make changes to this bug.