A NOTE has been added to this issue. ====================================================================== https://www.austingroupbugs.net/view.php?id=1941 ====================================================================== Reported By: dwheeler Assigned To: ajosey ====================================================================== Project: 1003.1(2024)/Issue8 Issue ID: 1941 Category: Shell and Utilities Type: Enhancement Request Severity: Objection Priority: normal Status: Under Review Name: David A. Wheeler Organization: User Reference: Section: grep Page Number: 1 Line Number: 1 Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2025-08-30 21:51 UTC Last Modified: 2025-09-18 18:02 UTC ====================================================================== Summary: Add widely-implemented options to grep ======================================================================
---------------------------------------------------------------------- (0007271) dwheeler (reporter) - 2025-09-18 18:02 https://www.austingroupbugs.net/view.php?id=1941#c7271 ---------------------------------------------------------------------- Thank you, you've answered my question about "what's more acceptable to POSIX". The `grep -C[num]` format with an OPTIONAL value isn't widely supported. OpenBSD supports it, and I think others *used* to as evidenced by MacOS' man page, but nearly all implementations (other than OpenBSD) have switched to making -C have a REQUIRED num instead of an optional num. I don't think it's *illegal* to have an unusual "-Cnum" format for a special case, but I completely understand that the group would prefer to avoid special cases, *especially* when 7 of 9 systems tested support the "easy and obvious" syntax of a required number. I've emailed Theo de Raadt (OpenBSD) to hear his thoughts. Issue History Date Modified Username Field Change ====================================================================== 2025-08-30 21:51 dwheeler New Issue 2025-08-30 21:51 dwheeler Status New => Under Review 2025-08-30 21:51 dwheeler Assigned To => ajosey 2025-08-30 21:56 dwheeler Note Added: 0007240 2025-08-30 21:59 dwheeler Note Added: 0007241 2025-08-31 00:07 mirabilos Note Added: 0007242 2025-08-31 00:10 mirabilos Note Added: 0007243 2025-08-31 21:52 dwheeler Note Added: 0007244 2025-08-31 22:01 dwheeler Note Added: 0007245 2025-09-01 05:57 stephane Note Added: 0007246 2025-09-01 06:05 stephane Note Added: 0007247 2025-09-01 15:36 dwheeler Note Added: 0007249 2025-09-01 17:10 dwheeler Note Added: 0007250 2025-09-01 17:18 dwheeler Note Added: 0007251 2025-09-11 15:31 lanodan Note Added: 0007253 2025-09-11 15:36 lanodan Note Edited: 0007253 2025-09-11 15:37 lanodan Note Edited: 0007253 2025-09-11 15:37 lanodan Note Edited: 0007253 2025-09-11 15:50 geoffclare Project 1003.1(2008)/Issue 7 => 1003.1(2024)/Issue8 2025-09-11 18:01 dwheeler Note Added: 0007256 2025-09-12 16:28 stephane Note Added: 0007258 2025-09-15 02:03 dwheeler Note Added: 0007259 2025-09-15 02:04 dwheeler Note Edited: 0007259 2025-09-15 02:08 dwheeler Note Edited: 0007259 2025-09-15 09:14 stephane Note Added: 0007260 2025-09-16 13:47 dwheeler Note Added: 0007261 2025-09-16 16:55 collinfunk Note Added: 0007262 2025-09-17 00:06 mirabilos Note Added: 0007263 2025-09-17 07:29 hvd Note Added: 0007264 2025-09-17 14:17 dwheeler Note Added: 0007265 2025-09-17 23:47 mirabilos Note Added: 0007266 2025-09-18 15:26 dwheeler Note Added: 0007267 2025-09-18 16:14 geoffclare Note Added: 0007269 2025-09-18 16:14 geoffclare Note Edited: 0007269 2025-09-18 18:02 dwheeler Note Added: 0007271 ======================================================================
