Red Hat Bugzilla – Bug 212602
psselect return value should indicate if no pages were written
Last modified: 2008-01-31 06:49:53 EST
Description of problem:
It would be convenient if psselect would indicate via the return value
(and not just the emitted text) whether any pages were selected.
Version-Release number of selected component (if applicable):
This is a feature request -- it occurs every time.
Steps to Reproduce:
1. psselect 10000 small.ps small-page10000.ps should return a different
value than psselect 1 big.ps big-page1.ps
What means "different value"? If it's different return value it can't be
different. Return value 0 indicates that psselect ends correctly. And it is same
for psselect 10000 small.ps small-page10000.ps and psselect 1 big.ps
big-page1.ps. Return value other than 0 is impossible because values other than
0 indicating error
I was proposing that not selecting any pages is off-normal and thus should not
return with 0. Since the return value is bi-value, we must convert the normal /
warning / error condition to normal / off-normal by conflating warnings with
normal or with error. I prefer the latter to the former. Could you accept a
command-line switch to determine which the user prefers?
Another forgotten bug... Do you still want this to be implemented? Sorry to ask
that silly but adding an option is API breakage and if it's not required it
would be better to avoid.
I've moved on to a different company, so I no longer use this particular package
(let alone function). I still believe that this feature would be useful, but
understand if you decided to mark it WONTFIX.