From owner-cvs-usrsbin Sat May 11 12:01:07 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA04334 for cvs-usrsbin-outgoing; Sat, 11 May 1996 12:01:07 -0700 (PDT) Received: (from joerg@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA04304 Sat, 11 May 1996 12:00:59 -0700 (PDT) Date: Sat, 11 May 1996 12:00:59 -0700 (PDT) From: Joerg Wunsch Message-Id: <199605111900.MAA04304@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/lpr/lp lp.1 lp.sh src/usr.sbin/lpr/lpr lpr.1 lpr.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk joerg 96/05/11 12:00:59 Modified: usr.sbin/lpr/lp lp.1 lp.sh Log: Clean out the BUGS section/comments now that our lpr has a better option parsing. Revision Changes Path 1.2 +1 -13 src/usr.sbin/lpr/lp/lp.1 1.3 +1 -8 src/usr.sbin/lpr/lp/lp.sh Modified: usr.sbin/lpr/lpr lpr.1 lpr.c Log: Convert the option parser to use getopt(3). This makes it more orthogonal with the rest of the system (you can now use either -PPS or -P PS), and makes the parser more intelligible. The only drawback is that the old semantics for the -i flag in case a non-numeric argument is following are no longer fully supported (only if -i is the very last arg at all), since getopt(3) doesn't support the discticnction between numeric and non-numeric arguments. Make lpr also understand dashes as input pseudo filenames. This finally makes lp(1) fully comply with Posix.2. Revision Changes Path 1.5 +7 -9 src/usr.sbin/lpr/lpr/lpr.1 1.7 +82 -78 src/usr.sbin/lpr/lpr/lpr.c