Red Hat Bugzilla – Bug 1032550
scl command splits arguments with white-space
Last modified: 2014-03-01 09:13:52 EST
Description of problem:
When we run scl with -- separator and use a command that includes a white-space in an argument (we need to use quotes), the quotes disappear when a bash script is being created and as a consequence, scl call runs the command with different (split) arguments than the same command run without scl.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. cat >foo.sh<<EOF
while [ ! -z "\$1" ] ; do
2. $ chmod a+x foo.sh
3. $ export A="f g"
4. $ export B="h i"
5. $ echo "Without scl:"
6. $ ./foo.sh a b "c d" e $A "$B" j
7. $ echo "With scl:"
8. $ scl enable mysql55 -- ./foo.sh a b "c d" e $A "$B" j
Both outputs (run the same command using scl and without scl) differ:
Both outputs are same:
Created attachment 826574 [details]
Proposed patch -- use quotes for arguments in the bash script
Applied upstream, thanks for the patch.
scl-utils-20140108-1.fc19 has been submitted as an update for Fedora 19.
scl-utils-20140108-1.fc20 has been submitted as an update for Fedora 20.
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing scl-utils-20140108-1.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
scl-utils-20140127-1.fc19 has been submitted as an update for Fedora 19.
scl-utils-20140127-1.fc20 has been submitted as an update for Fedora 20.
scl-utils-20140127-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
scl-utils-20140127-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.