[Bug 1146733] New: ghc-doc-index bashism
by Red Hat Bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1146733
Bug ID: 1146733
Summary: ghc-doc-index bashism
Product: Fedora
Version: 20
Component: ghc
Severity: low
Assignee: petersen(a)redhat.com
Reporter: mik(a)miknet.net
QA Contact: extras-qa(a)fedoraproject.org
CC: bos(a)serpentine.com,
haskell-devel(a)lists.fedoraproject.org,
petersen(a)redhat.com
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
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=dsZwcHSQ7n&a=cc_unsubscribe
9 years, 4 months