On Mon, Feb 21, 2011 at 04:20:24PM -0500, Ted Unangst wrote: > On Mon, Feb 21, 2011 at 3:46 PM, Mark Kettenis <mark.kette...@xs4all.nl> > wrote: > > Also, -H is non-standard AFIK, and we try to avoid adding non-standard > > options to our tools. Theo has objected to changes like this before. > > So I don't think this should go in without giving him a chance to > > comment. > > Yes, but let's be honest. In the case of grep, there is only one > standard that counts, "what GNU grep does". > > Well, I kind of disagree. First priority should be to obey POSIX (which GNU grep violates e.g. by making EREs the default even when given the -G flag). But concerning everything that goes beyond POSIX, GNU is a defacto standard.
In this case, there are already a lot of flags not required by POSIX, so 'we don't like non-standard options' can hardly be a valid objection. The only problem I could come up with is that it changes the previous meaning of the -H flag on OpenBSD (which was removed exactly because it was an OpenBSD-only flag). Concerning ports, I don't see how this could cause problems. Rather, any script that might use the -H flag should be fixed by this change as they will rely on GNU behaviour. However, I don't think there are any. But let Theo decide ... :)