Age | Commit message (Collapse) | Author |
|
and let -d accept a multibyte delimiter character.
While here, simplify the code by switching from fgetln(3) to getline(3)
and from hand-crafted string parsing to strstr(3) and strchr(3).
OK tedu@ czarkoff@ zhuk@.
|
|
|
|
|
|
stdin, an additional tame "stdio" is easy.
same diff from sthen
|
|
|
|
initialization; use a variable name consistent with the rest of our tree.
|
|
operands after not finding an input file.
from the IEEE Std 1003.1-2008 (``POSIX.1'') rationale:
"Unlike other utilities, some historical implementations of cut
exit after not finding an input file, rather than continuing to
process the remaining file operands. This behavior is prohibited
by this volume of POSIX.1-2008, where only the exit status is
affected by this problem."
joint work with jmc@, who identified the compliance issue, and millert@
ok millert@, jmc@
|
|
|
|
illegal -b arguments, so fix the error messages;
patch from Laurent Ghigonis <ooookiwi at gmail dot com> on tech@.
While here, improve the manual, too:
* arguments need not be in increasing order
* CAVEAT: -b and -c do the same right now
feedback and ok jmc@
|
|
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms
|
|
ok jmc@
|
|
from Igor Sobrado
|
|
|
|
rescinded 22 July 1999. Proofed by myself and Theo.
|
|
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
|
|
millert@ ok
|
|
reported by marc@snafu.org. The main thing here is we use fgetln() instead of
fgets(), also giving us the advantage of being able to handle lines of
unlimited length. Some -Wall and other fixes from millert@ as well.
|
|
|
|
|
|
|
|
|
|
|
|
|