Bug 1867135

Summary: scl_source prints warnings and errors to stdout
Product: Red Hat Enterprise Linux 8 Reporter: Paulo Andrade <pandrade>
Component: scl-utilsAssignee: Michal Domonkos <mdomonko>
Status: CLOSED ERRATA QA Contact: Lukáš Zachar <lzachar>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.4CC: jorton, kanderso, mdomonko, vikpatil
Target Milestone: rcKeywords: Triaged
Target Release: 8.4Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: scl-utils-2.0.2-14.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 18:50:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Paulo Andrade 2020-08-07 12:57:10 UTC
Sample reproducer:

$ source scl_source enable devtoolset-9 2>/dev/null
Can't read /etc/scl/conf/devtoolset-9, devtoolset-9 is probably not installed.

  Other than the help string, it should redirect other echo
calls to stderr, like in the pseudo patch:

-        echo "Can't read $_scl_prefix_file, $arg is probably not installed."
+        echo "Can't read $_scl_prefix_file, $arg is probably not installed." 1>&2

  This would make it have the same behavior for example, as

$ scl enable devtoolset-9 ...

that prints a similar message to stderr if the collection is not
available.

Comment 23 Michal Domonkos 2021-07-13 15:28:25 UTC
Upstream PR: https://github.com/sclorg/scl-utils/pull/36

Comment 33 errata-xmlrpc 2021-11-09 18:50:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (scl-utils bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4308