Thread: Re: pg_restore ERROR: permission denied to change default privileges
14 Jun 2025, 16:21 by adrian.klaver@aklaver.com: > > Isn't fgrep -F redundant? As I understand it fgrep = grep -F > You have the wrong end of the stick. ;-) As per Grep 3.8 release notes (https://lists.gnu.org/archive/html/info-gnu/2022-09/msg00001.html): "The egrep and fgrep commands, which have been deprecated since release 2.5.3 (2007), now warn that they are obsolescentand should be replaced by grep -E and grep -F."
On 6/15/25 01:06, Rachel Roch wrote: > > > > 14 Jun 2025, 16:21 by adrian.klaver@aklaver.com: > >> >> Isn't fgrep -F redundant? As I understand it fgrep = grep -F >> > You have the wrong end of the stick. ;-) Don't think so, the -F is redundant. Try grep -F then fgrep and then fgrep -F on the same file. > > As per Grep 3.8 release notes (https://lists.gnu.org/archive/html/info-gnu/2022-09/msg00001.html): > > "The egrep and fgrep commands, which have been deprecated since release 2.5.3 (2007), now warn that they are obsolescentand should be replaced by grep -E and grep -F." > -- Adrian Klaver adrian.klaver@aklaver.com
On 6/15/25 08:15, Adrian Klaver wrote: > On 6/15/25 01:06, Rachel Roch wrote: >> >> >> >> 14 Jun 2025, 16:21 by adrian.klaver@aklaver.com: >> >>> >>> Isn't fgrep -F redundant? As I understand it fgrep = grep -F >>> >> You have the wrong end of the stick. ;-) > > Don't think so, the -F is redundant. It is redundant for fgrep. > > Try grep -F then fgrep and then fgrep -F on the same file. > >> >> As per Grep 3.8 release notes >> (https://lists.gnu.org/archive/html/info-gnu/2022-09/msg00001.html): >> >> "The egrep and fgrep commands, which have been deprecated since >> release 2.5.3 (2007), now warn that they are obsolescent and should >> be replaced by grep -E and grep -F." >> > -- Adrian Klaver adrian.klaver@aklaver.com
15 Jun 2025, 17:15 by adrian.klaver@aklaver.com: > > It is redundant for fgrep. > Talk about muscle memory ! How many years have I still been typing fgrep -F thinking I was typing grep -F !