Description of problem: xorg-x11-fonts-update-dirs is not a /bin/sh script, because this script applies pushd+popd, which both are non-POSIX-sh-extensions. Version-Release number of selected component (if applicable): xorg-x11-font-utils-7.4-3.fc14.x86_64 Steps to Reproduce: Try to run this scipt with ksh: # /bin/ksh xorg-x11-fonts-update-dirs --skip-fontscale /usr/share/X11/fonts/misc xorg-x11-fonts-update-dirs[54]: pushd: not found [No such file or directory] xorg-x11-fonts-update-dirs: line 56: popd: not found Expected results: A /bin/sh script should be POSIX-sh compliant, => either this script should change to using the shebang of a shell supporting pushd+popd (e.g. #!/bin/bash) or the script be rewritten (esp. to not use pushd+popd)
What do you think about the patch in attachment 469993 [details] ?
(In reply to comment #1) > What do you think about the patch in attachment 469993 [details] ? OK, that's the classic subshell pushd/popd approach - I don't any reason why it shouldn't work. It's advantage is it being usable should once a loop be introduced around the pushd/popd, it's downside it the subshell having its price. An alternative would be the "save pwd" approach. sav_pwd=`pwd` cd <somewhere> do-something cd ${sav_pwd} This would avoid the subshell and therefore is somewhat less expensive, but it would not be suitable for "loops". AFAIS, ATM the latter alternative would suffice.
Urgh, this was badly phrased, I was referring to "recursive loops", not "flat loops".
xorg-x11-font-utils-7.4-4.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/xorg-x11-font-utils-7.4-4.fc14
xorg-x11-font-utils-7.4-4.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update xorg-x11-font-utils'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/xorg-x11-font-utils-7.4-4.fc14
xorg-x11-font-utils-7.4-4.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.