]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
config: Move the 2>/dev/null inside the sh -c '' quotes for profile.csh.
authorMark Wielaard <mark@klomp.org>
Tue, 3 May 2022 15:48:55 +0000 (17:48 +0200)
committerMark Wielaard <mark@klomp.org>
Tue, 3 May 2022 15:48:55 +0000 (17:48 +0200)
csh/tcsh would warn about "Ambiguous output redirect" if not done inside
the sh -c command.

Fix-by: наб <nabijaczleweli@nabijaczleweli.xyz>
https://bugzilla.redhat.com/show_bug.cgi?id=2080957

Signed-off-by: Mark Wielaard <mark@klomp.org>
config/ChangeLog
config/profile.csh.in

index 51415258009d54a1250e205c42d9722662ea6aca..cfb37b4223d98d1ef0d79579ade9c7f2cf52f89c 100644 (file)
@@ -1,3 +1,7 @@
+2022-05-03  Mark Wielaard  <mark@klomp.org>
+
+       * profile.csh.in: Move the 2>/dev/null inside the sh -c '' quotes.
+
 2022-04-25  Mark Wielaard  <mark@klomp.org>
 
        * elfutils.spec.in: Update for 0.187.
index 012e243ad28d3399547a1302899fcba3573b213b..74c20c99e36c4b641ff27d9bd3efe803708ecf01 100644 (file)
@@ -6,7 +6,7 @@
 
 if (! $?DEBUGINFOD_URLS) then
     set prefix="@prefix@"
-    set DEBUGINFOD_URLS=`sh -c 'cat "$0"/*.urls; :' "@sysconfdir@/debuginfod" 2>/dev/null | tr '\n' ' '`
+    set DEBUGINFOD_URLS=`sh -c 'cat "$0"/*.urls 2>/dev/null; :' "@sysconfdir@/debuginfod" | tr '\n' ' '`
     if ( "$DEBUGINFOD_URLS" != "" ) then
         setenv DEBUGINFOD_URLS "$DEBUGINFOD_URLS"
     else