Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nl: support one file argument (#479)
* Standard nl is not required to support multiple input files [1] * Follow BSD versions of nl and support only one input file, which may be '-' for stdin * Also checked SunOS manual page, and it is consistent with BSD [2] * Update usage string and description in POD * While here, add explicit close() call in do_file() so we can exit with failure code if close() fails * Delete comment at top of file which duplicates what is written in POD * Bump version 1. https://pubs.opengroup.org/onlinepubs/009695399/utilities/nl.html 2. https://shrubbery.net/solaris9ab/SUNWaman/hman1/nl.1.html
- Loading branch information
Showing
1 changed file
with
15 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters