lpstat option order changes functionality
Dean Barnes
dbarnes4444 at gmail.com
Wed Nov 12 06:32:46 PST 2008
I am trying to determine if this problem I am having is a bug or whether the results I am getting are correct.
First some background. I am using RHEL5 with cups-1.2.4-11.14.el5.
I get the same results on RHEL3 with cups-1.1.17-13.3.43
If I type in the following:
#>lpstat -p -l
printer HP4600B is idle. enabled since Tue 30 Sep 2008 03:49:55 PM NDT
printer HP5SiB is idle. enabled since Wed 15 Oct 2008 09:40:40 AM NDT
printer HP9050F is idle. enabled since Tue 04 Nov 2008 02:22:50 PM NST
printer HP9050I is idle. enabled since Tue 30 Sep 2008 04:26:22 PM NDT
Please note the order of the options for the above lpstat command
Now if I change the order of options to the following I get something different.
#>lpstat -l -p
printer HP4600B is idle. enabled since Tue 30 Sep 2008 03:49:55 PM NDT
Form mounted:
Content types: any
Printer types: unknown
Description: HP Color Laser Jet 4600 PS
Alerts: none
Location: SC - 3rd Floor - G&G Area
Connection: direct
Interface: /etc/cups/ppd/HP4600B.ppd
On fault: no alert
After fault: continue
Users allowed:
(all)
Forms allowed:
(none)
Banner required
Charset sets:
(none)
Default pitch:
Default page size:
Default port settings:
printer HP5SiB is idle. enabled since Wed 15 Oct 2008 09:40:40 AM NDT
Form mounted:
Content types: any
Printer types: unknown
Description: HP5SiB
Alerts: none
Location: 3rd Floor Scotia Centre
Connection: direct
Interface: /etc/cups/ppd/HP5SiB.ppd
On fault: no alert
After fault: continue
Users allowed:
(all)
Forms allowed:
(none)
Banner required
Charset sets:
(none)
Default pitch:
Default page size:
Default port settings:
printer HP9050F is idle. enabled since Tue 04 Nov 2008 02:22:50 PM NST
Form mounted:
Content types: any
Printer types: unknown
Description: HP9050F
Alerts: none
Location: 3rd Floor Scotia Centre
Connection: direct
Interface: /etc/cups/ppd/HP9050F.ppd
On fault: no alert
After fault: continue
Users allowed:
(all)
Forms allowed:
(none)
Banner required
Charset sets:
(none)
Default pitch:
Default page size:
Default port settings:
printer HP9050I is idle. enabled since Tue 30 Sep 2008 04:26:22 PM NDT
Form mounted:
Content types: any
Printer types: unknown
Description: HP Color Laser Jet 9050
Alerts: none
Location: SC - 3rd Floor - G&G Area
Connection: direct
Interface: /etc/cups/ppd/HP9050I.ppd
On fault: no alert
After fault: continue
Users allowed:
(all)
Forms allowed:
(none)
Banner required
Charset sets:
(none)
Default pitch:
Default page size:
Default port settings:
Is this suppose to be the functionality of lpstat? I would have assumed that order did not matter, but in this case it does. Can someone confirm whether this is a "feature" or a bug?
More information about the cups-devel
mailing list