Re: [GTALUG] Fedora 38 is out

2023-04-22 Thread D. Hugh Redelmeier via talk
| From: Dave Collier-Brown via talk 

| F and fgrep are historical accidents.

I take it you mean the -F flag.

| IMHO, the only reason they still
| exist is bad practice from the v6 era, when we only had a 16-bit address
| space.

Actually, fgrep is useful because you don't need to ensure that the
pattern has no RE metacharacters (NewLine and (I presume) NUL remain
meta).

I've almost never used fgrep.  So maybe it isn't useful.  The
libreswan source tree has two lines referencing fgrep.

I always use the egrep command because I am most comfortable with its
variant of regular expressions.  grep -E takes 3 more keystrokes (I
count the shift).

The regex(7) manpage on Fedora 37 calls grep's version of regular
expresssions "obsolete" but notes that POSIX.2 calls them "basic".
The page says it was from Henry Spencer's regex package.

Reading the GNU grep(1) manpage, I learned something new: the pattern
argument to the greps is actually a list of patterns separated by
newlines.  How ugly but potentially useful:
grep 'cat|dog'
could be written as:
grep 'cat
dog'

This was always true of fgrep, one of the reasons I avoided it.  But
now it is true of the other variants.

|  The interface could be preserved forever: the implementation?
| Less so.

Oh, the implementations are gone.  It is the loss of the interfaces
that I and other fossils are objecting to.

grep is such a great thing that there are many variants.  Like agrep,
AWK and perl.  Snobol seems related but is actually earlier.
---
Post to this mailing list talk@gtalug.org
Unsubscribe from this mailing list https://gtalug.org/mailman/listinfo/talk


Re: [GTALUG] Fedora 38 is out

2023-04-22 Thread Dave Collier-Brown via talk

F and fgrep are historical accidents. IMHO, the only reason they still
exist is bad practice from the v6 era, when we only had a 16-bit address
space.  The interface could be preserved forever: the implementation?
Less so.

--dave



On 4/22/23 16:34, William Park via talk wrote:

I don't know what's the issue.  [ef]grep already is symlinked or shell
scripts (exec grep -[EF] "$@"), and warning message is to stderr not
stdout.

On 2023-04-22 11:51, D. Hugh Redelmeier via talk wrote:

| From: Stewart C. Russell via talk 

| I hear that it ships with the latest GNU grep, which removes fgrep
and egrep.
| This could be considered a bad idea:
| https://mastodon.social/@cks/110232377928840323

Ouch.  Thanks for the heads-up.

I hope that it gets fixed.  Unlikely to be fixed by GNU, I guess.

That mastodon thread has a number of UNIX notables.
---
Post to this mailing list talk@gtalug.org
Unsubscribe from this mailing list
https://gtalug.org/mailman/listinfo/talk

---
Post to this mailing list talk@gtalug.org
Unsubscribe from this mailing list
https://gtalug.org/mailman/listinfo/talk


--
David Collier-Brown, | Always do right. This will gratify
System Programmer and Author | some people and astonish the rest
dave.collier-br...@indexexchange.com |  -- Mark Twain


CONFIDENTIALITY NOTICE AND DISCLAIMER : This telecommunication, including any 
and all attachments, contains confidential information intended only for the 
person(s) to whom it is addressed. Any dissemination, distribution, copying or 
disclosure is strictly prohibited and is not a waiver of confidentiality. If 
you have received this telecommunication in error, please notify the sender 
immediately by return electronic mail and delete the message from your inbox 
and deleted items folders. This telecommunication does not constitute an 
express or implied agreement to conduct transactions by electronic means, nor 
does it constitute a contract offer, a contract amendment or an acceptance of a 
contract offer. Contract terms contained in this telecommunication are subject 
to legal review and the completion of formal documentation and are not binding 
until same is confirmed in writing and has been signed by an authorized 
signatory.
---
Post to this mailing list talk@gtalug.org
Unsubscribe from this mailing list https://gtalug.org/mailman/listinfo/talk


Re: [GTALUG] Fedora 38 is out

2023-04-22 Thread Lennart Sorensen via talk
On Sat, Apr 22, 2023 at 11:51:17AM -0400, D. Hugh Redelmeier via talk wrote:
> | From: Stewart C. Russell via talk 
> 
> | I hear that it ships with the latest GNU grep, which removes fgrep and 
> egrep.
> | This could be considered a bad idea:
> | https://mastodon.social/@cks/110232377928840323
> 
> Ouch.  Thanks for the heads-up.
> 
> I hope that it gets fixed.  Unlikely to be fixed by GNU, I guess.
> 
> That mastodon thread has a number of UNIX notables.

It won't get fixed by the people that caused it.  This is a GNU change,
not a Fedora change.  I might be tempted to blame Fedora for many dumb
changes over the years, but can't tack this one on them.

-- 
Len Sorensne
---
Post to this mailing list talk@gtalug.org
Unsubscribe from this mailing list https://gtalug.org/mailman/listinfo/talk


Re: [GTALUG] Fedora 38 is out

2023-04-22 Thread Lennart Sorensen via talk
On Sat, Apr 22, 2023 at 08:16:01PM +0200, Dhaval Giani via talk wrote:
> I don’t know why you think so. There is a real cost to maintaining
> software. Who is going to keep track of security issues? What about changes
> to libraries you are linking to? Unless you are stepping up to maintain the
> software, I think deprecating software is not only fine but necessary to
> maintain security and quality.

grep -E and grep -F are not going away, and egrep and fgrep are symlinks
to grep that simply operate as grep -E and grep -F by default.  There is
zero maintainance work involved.

But apparently someone involved with GNU grep decided some 15 years ago
that these commands only existed because originally on unix fgrep and
egrep were seperate binaries and that since that wasn't true anymore,
they must be removed, because reasons.

Seems like a change for the sake of making a change.

-- 
Len Sorensen
---
Post to this mailing list talk@gtalug.org
Unsubscribe from this mailing list https://gtalug.org/mailman/listinfo/talk


Re: [GTALUG] Fedora 38 is out

2023-04-22 Thread William Park via talk
I don't know what's the issue.  [ef]grep already is symlinked or shell 
scripts (exec grep -[EF] "$@"), and warning message is to stderr not 
stdout.


On 2023-04-22 11:51, D. Hugh Redelmeier via talk wrote:

| From: Stewart C. Russell via talk 

| I hear that it ships with the latest GNU grep, which removes fgrep and egrep.
| This could be considered a bad idea:
| https://mastodon.social/@cks/110232377928840323

Ouch.  Thanks for the heads-up.

I hope that it gets fixed.  Unlikely to be fixed by GNU, I guess.

That mastodon thread has a number of UNIX notables.
---
Post to this mailing list talk@gtalug.org
Unsubscribe from this mailing list https://gtalug.org/mailman/listinfo/talk

---
Post to this mailing list talk@gtalug.org
Unsubscribe from this mailing list https://gtalug.org/mailman/listinfo/talk


Re: [GTALUG] Fedora 38 is out

2023-04-22 Thread Dhaval Giani via talk
On Fri, Apr 21, 2023 at 23:55 Stewart Russell via talk 
wrote:

> On Fri., Apr. 21, 2023, 14:13 BCLUG via talk,  wrote:
>
>>
>>
>> I never, ever use fgrep or egrep and I think it's a bad idea.
>>
>
> Well, that's me told. I've used fgrep since the days when regular grep on
> a large file would take minutes, while fgrep would take seconds. I also
> learned egrep's slightly weird syntax at the same time. This was before
> PCRE was a thing. Before long-form options were a thing, too
>
> Deprecation of free software is so pointless. To break scripts for some
> imagined purity is flat-out daft.
>

I don’t know why you think so. There is a real cost to maintaining
software. Who is going to keep track of security issues? What about changes
to libraries you are linking to? Unless you are stepping up to maintain the
software, I think deprecating software is not only fine but necessary to
maintain security and quality.

Thanks
Dhaval


>
>  Stewart
>
>>
>>
>> ---
> Post to this mailing list talk@gtalug.org
> Unsubscribe from this mailing list
> https://gtalug.org/mailman/listinfo/talk
>
---
Post to this mailing list talk@gtalug.org
Unsubscribe from this mailing list https://gtalug.org/mailman/listinfo/talk


Re: [GTALUG] Fedora 38 is out

2023-04-22 Thread BCLUG via talk

Stewart Russell via talk wrote on 2023-04-21 14:55:



I never, ever use fgrep or egrep and I think it's a bad idea.


Well, that's me told.



When I read your quote of my message, it occurred to me that I done 
messed up.



What I meant to say was, "I don't use them, and I think it's a bad idea 
*to remove them*". I was (in my head) referring to the original subject 
but failed to make that clear.



I still think that scripts really ought to use long-form options, but I 
am generally against removing choices unless the alternative it too much 
a burden.  This case doesn't seem to fit that definition though.



Sorry for the mix-up.
---
Post to this mailing list talk@gtalug.org
Unsubscribe from this mailing list https://gtalug.org/mailman/listinfo/talk


Re: [GTALUG] Fedora 38 is out

2023-04-22 Thread D. Hugh Redelmeier via talk
| From: Stewart C. Russell via talk 

| I hear that it ships with the latest GNU grep, which removes fgrep and egrep.
| This could be considered a bad idea:
| https://mastodon.social/@cks/110232377928840323

Ouch.  Thanks for the heads-up.

I hope that it gets fixed.  Unlikely to be fixed by GNU, I guess.

That mastodon thread has a number of UNIX notables.
---
Post to this mailing list talk@gtalug.org
Unsubscribe from this mailing list https://gtalug.org/mailman/listinfo/talk