"lp" command in RHEL 8 shows incorrect message when printing to a non-existent printer
Issue
In RHEL 8, if the lp command is run on a non-existent print queue, the error message isn't quite right. For example, in RHEL 8:
[root@rhel85 ~]# lp -d nonexistent /etc/fstab
lp: No such file or directory
[root@rhel85 ~]# lpr -P nonexistent /etc/fstab
lpr: No such file or directory
but in earlier versions of RHEL:
[root@rhel79 ~]# lp -d nonexistent /etc/fstab
lp: The printer or class does not exist.
[root@rhel79 ~]# lpr -P nonexistent /etc/fstab
lpr: The printer or class does not exist.
Environment
- Red Hat Enterprise Linux (RHEL) 8.0 - 8.5
- Common Unix Printing System (CUPS) 2.2.6-40.el8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.