Bug 212602 - psselect return value should indicate if no pages were written
Summary: psselect return value should indicate if no pages were written
Alias: None
Product: Fedora
Classification: Fedora
Component: psutils   
(Show other bugs)
Version: 5
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Tomas Smetana
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2006-10-27 17:57 UTC by Steve Friedman
Modified: 2008-01-31 11:49 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-01-31 11:49:53 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Steve Friedman 2006-10-27 17:57:09 UTC
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):

How reproducible:
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
Actual results:

Expected results:

Additional info:

Comment 1 Adam Tkac 2006-10-31 08:51:41 UTC
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

Comment 2 Steve Friedman 2006-10-31 15:35:51 UTC
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?

Comment 3 Tomas Smetana 2008-01-30 11:15:47 UTC
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.

Comment 4 Steve Friedman 2008-01-30 16:45:12 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.