coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

Implement cat

Open GrayJack opened this issue 6 years ago • 5 comments

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

GrayJack avatar Sep 27 '19 20:09 GrayJack

I'll do this one!

EduRenesto avatar Sep 27 '19 21:09 EduRenesto

I want to work on this. Is supporting -b -n and -s enough?

argentite avatar Oct 22 '19 19:10 argentite

@EduRenesto Are you still working on this?

GrayJack avatar Oct 25 '19 23:10 GrayJack

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

GrayJack avatar Oct 26 '19 00:10 GrayJack

@argentite Seems like @EduRenesto doesn't want to continue, would like to continue where he stopped? Maybe implementing what he did not

GrayJack avatar Oct 28 '19 12:10 GrayJack