Bug 1146733
| Summary: | ghc-doc-index bashism | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Michael Samuel <mik> |
| Component: | ghc | Assignee: | Jens Petersen <petersen> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 20 | CC: | bos, haskell-devel, petersen |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ghc-7.6.3-26.3.fc21 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-01-14 23:55:35 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Thanks for reporting this! I fixed it now in pkg git master. It may take some time for this tiny change to reach F20 though, I hope you can live with a local workaround in the meantime. ghc-7.6.3-26.1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/ghc-7.6.3-26.1.fc21 ghc-7.6.3-26.3.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/ghc-7.6.3-26.3.fc21 Package ghc-7.6.3-26.3.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing ghc-7.6.3-26.3.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-17631/ghc-7.6.3-26.3.fc21 then log in and leave karma (feedback). ghc-7.6.3-26.3.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: The line: mv -f $PKGDIRCACHE{.new,} in ghc-doc-index doesn't work when dash is /bin/sh (it only resolves to one argument). This is easily fixed, either by just specifying it as two arguments: mv -f "${PKGDIRCACHE}" "${PKGDIRCACHE}.new" or just putting #!/bin/bash in the top line. Version-Release number of selected component (if applicable): ghc-doc-index-7.6.3-18.3.fc20.x86_64 Steps to Reproduce: yum install dash && cd /bin && ln -sf sh dash Actual results: Email from cron: /etc/cron.hourly/ghc-doc-index: mv: missing destination file operand after ‘/var/lib/ghc/pkg-dir.cache{.new,}’ Try 'mv --help' for more information. Expected results: No email from cron