Description of problem: The redirection in /etc/profile.d/debuginfod.csh, which is delivered by the elfutils-debuginfod-client rpm, causes the following warning to appear at login or whenever csh or tcsh are started: Ambiguous output redirect. The offending line is: set debuginfod_urls=`sh -c "cat /etc/debuginfod/*.urls 2>/dev/null" | tr '\n' ' '` ... which was introduced with elfutils-debuginfod-client-0.187-1.fc36. The warning did not occur with elfutils-debuginfod-client-0.186-3.fc36. Version-Release number of selected component (if applicable): elfutils-debuginfod-client-0.187-1.fc36 How reproducible: Warning occurs at every login or csh/tcsh startup that processes startup files. Steps to Reproduce: 1. Login to affected system (any shell) 2. tcsh Warning would occur at step 1 if the user's shell is csh or tcsh. Actual results: Expected results: Additional info:
Sorry, I am travelling and don't have [t]csh installed locally at the moment. So I cannot easily replicate. The odd thing is that the line that apparently reports the issue is explcitly using sh -c "..." precisely to work around the redirection limitations in [t]csh.
It uses sh -c, but as there is no quoting around the redirection symbols (> and |), seems to me those would be handled by the shell handling the backticks, i.e. csh or tcsh. Maybe some additional quoting could make things work, or this just need to be rewritten in a more csh/tcsh friendly way.
(In reply to Marc Dionne from comment #2) > It uses sh -c, but as there is no quoting around the redirection symbols (> > and |), seems to me those would be handled by the shell handling the > backticks, i.e. csh or tcsh. You are right. I am not sure how we missed this. It is fixed upstream now: https://sourceware.org/pipermail/elfutils-devel/2022q2/005000.html I'll prepare new elfutils packages.
FEDORA-2022-287a6c3913 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-287a6c3913
FEDORA-2022-287a6c3913 has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-287a6c3913` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-287a6c3913 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-287a6c3913 has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report.