Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#74854 - [debuginfod] /etc/profile.d/debuginfod.csh uses Bourne shell redirection syntax

Attached to Project: Arch Linux
Opened by Steven Winikoff (smw) - Wednesday, 25 May 2022, 19:35 GMT
Last edited by David Runge (dvzrv) - Monday, 28 November 2022, 00:00 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To David Runge (dvzrv)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
File /etc/profile.d/debuginfod.csh is added by the debuginfod package. This profile script should use csh/tcsh syntax, but line 9 used Bourne shell redirection syntax.

The result is an error message every time it runs, which is every time a new shell is started for users whose login shell is /bin/tcsh:

Ambiguous output redirect.

The problem occurs in line 9, with this snippet: 2>/dev/null

set DEBUGINFOD_URLS=`sh -c 'cat "$0"/*.urls; :' "/etc/debuginfod" 2>/dev/null | tr '\n' ' '`

In particular, the redirection is being interpreted by the outer csh or tcsh shell, before the sh -c command is executed. One fix is to use single quotes around the redirection string:

set DEBUGINFOD_URLS=`sh -c 'cat "$0"/*.urls; :' "/etc/debuginfod" '2>/dev/null' | tr '\n' ' '`

Additional info:
* package version(s)
debuginfod 0.187-1

Steps to reproduce:
Start a new csh or tcsh shell.
This task depends upon

Closed by  David Runge (dvzrv)
Monday, 28 November 2022, 00:00 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with libelf 0.188-1
Comment by Toolybird (Toolybird) - Friday, 29 July 2022, 03:54 GMT
This looks to be fixed upstream already [1].

https://sourceware.org/git/?p=elfutils.git;a=commit;h=f1252e4d

Loading...