Garbage output is being displayed if a command executed is not valid\found in Red Hat Enterprise Linux 8
Issue
-
The
command shell
will display some unnecessary\garbage outputs when an executed command is not a valid command.bash: nmap: command not found... Failed to search for file: Cannot update read-only repo or, bash: lsz: command not found... Failed to search for file: cannot update repo 'rhel-8-for-x86_64-appstream-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Status code: 404 for https://satellite.example.com/pulp/repos/fhlb_atl/nonprod/RHEL8/content/dist/rhel8/8.0/x86_64/appstream/os/repodata/repomd.xml
Environment
- Red Hat Enterprise Linux 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.