Bug 175481

Summary: Compatibility problem with action function in functions script
Product: [Fedora] Fedora Reporter: Evert Verhellen <evert.verhellen>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED DUPLICATE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-12-12 19:04:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Evert Verhellen 2005-12-11 17:24:22 UTC
Description:

The action function in the functions script of the initscripts package doesn't
work as before. The following piece of code ran fine with Fedora Core 3
(initscripts 7.93.2):

    . /etc/rc.d/init.d/functions

    ORACLE_OWNER="oracle"

    action $"Starting Oracle Enterprise Manager 10g Database Control:" \
        "su - ${ORACLE_OWNER} -c '\${ORACLE_HOME}/bin/emctl start dbconsole'"

Results with Fedora Core 4 (initscripts 8.11.1):

Stopping Oracle Enterprise Manager 10g Database Control: stop: -c: line 0:
unexpected EOF while looking for matching `''
stop: -c: line 1: syntax error: unexpected end of file
                                                           [FAILED]

Which is strange because nothing is wrong with the quoting itself. Changing the
quoting as follows supresses the above error message:

    action $"Starting Oracle Enterprise Manager 10g Database Control:" \
        su - ${ORACLE_OWNER} -c "\${ORACLE_HOME}/bin/emctl start dbconsole"

However ... When doing this the arguments `start' and `dbconsole' are apparently
just dropped. Which is again a problem because `emctl' just displays the usage.

Comment 1 Bill Nottingham 2005-12-12 19:04:35 UTC

*** This bug has been marked as a duplicate of 161316 ***