Implement cat
This is a tracking issue for the cat utility.
Required options and flags in the POSIX standard:
- [ ]
u(long: ¹)
Required extension options and flags:
- [X]
b(long:number-nonblank) - [ ]
e(long: ²) - [X]
E(long:show-ends) - [X]
n(long:number) - [X]
s(long:squeeze_blank) - [ ]
T(long:show-tabs) - [ ]
t(long: ²) - [ ]
v(long:show-nonprinting)
Notes: ¹ : Long name not defined on other implementation of this utility. Implementer must choose a long name. ² : Short name (one letter) not defined on other implementation of this utility. Implementer must choose. a short name
References
POSIX standard text FreeBSD Manual NetBSD Manual OpenBSD Manual DragonFlyBSD Manual
Unresolved questions:
All extension options/flags required are only there because most implementations also do. But there is just another two extensions left for all major versions of the utility, -A, -B and -f. Should those last three be implemented as well?
History
-n, -b, -E and -s implemented by #106
I'll do this one!
I want to work on this. Is supporting -b -n and -s enough?
@EduRenesto Are you still working on this?
I want to work on this. Is supporting -b -n and -s enough?
I require a minimum set of of flags that are common in major versions of coreutils (Linux, FreeBSD, NetBSD, OpenBSD, DragonflyBSD, Illumos/Solaris)* to consider the tool to be considered Done, but if needed, it can be made in several pull requests.
* If 3~4 of the 6 implements a feature, it is a requirement to be the considered Done
@argentite Seems like @EduRenesto doesn't want to continue, would like to continue where he stopped? Maybe implementing what he did not