ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Ilya Kurdyukov <ilyakurdyukov@basealt.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] egrep & fgrep
Date: Wed, 4 May 2022 09:10:39 +0700
Message-ID: <078d0c69-c816-7e1f-053b-5c0208d25b7d@basealt.ru> (raw)
In-Reply-To: <YnF2Q2WkCLzZtieh@portlab>

 > Потому что люди читают сверху вниз.

Я открываю почту и вижу НАЧАЛО письма, если ответ в начале то не надо 
скроллить пропуская страницы текста (который я уже читал и знаю) до 
вашего ответа.

Поэтому я считаю, что при переписке по почте нужно отвечать сверху, а не 
снизу.

Можно сделать так:

mkdir -p ~/bin

echo -e '#!/bin/bash\ngrep -E "$@"' > ~/bin/egrep

chmod +x ~/bin/egrep

Главное чтобы bin в PATH попал (может попасть автоматически через 
.profile, но я не уверен как в спеке это будет работать).

On 5/4/22 01:36, Vladimir D. Seleznev wrote:
> On Wed, May 04, 2022 at 12:38:44AM +0700, Ilya Kurdyukov wrote:
>> Очень некрасивый патч, я бы sed скрипт в одну строку использовал, если
>> делается простая замена.
>>
>> Или можно было свой egrep ссылающийся на grep -E в PATH добавить, если
>> ворнинги беспокоят.
>>
>> А потом если что изменится в исходнике, то придётся патч править.
> Патч лучше, т.к. явно видно, что на что меняется. А для проверки будущих
> версий лучше написать guard, проверяющий наличие [ef]grep в исходниках
> после патча.
>
>> On 5/4/22 00:16, Ruslandh wrote:
>>> 03.05.2022 18:26, Dmitry V. Levin пишет:
>>>> 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.
>>> А можно от него избавиться (особенно) в скриптах ?
>>>
>>> PS rkhunter-1.4.7-egrep.patch пришлось такой патч делать
>>> https://git.altlinux.org/gears/r/rkhunter.git?a=tree;hb=1eb94dc714b01afd23a08d423eb5d93b8b9f1a0b
>>> ;-)
> A: Потому что люди читают сверху вниз.
> Q: Почему не следует писать ответ перед цитатой?
>


  reply	other threads:[~2022-05-04  2:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-02  8:21 P X
2022-05-03 15:26 ` Dmitry V. Levin
2022-05-03 17:16   ` Ruslandh
2022-05-03 17:38     ` Ilya Kurdyukov
2022-05-03 17:56       ` Ruslandh
2022-05-03 18:36       ` Vladimir D. Seleznev
2022-05-04  2:10         ` Ilya Kurdyukov [this message]
2022-05-04 11:46           ` Sergey V Turchin
2022-05-04 20:53           ` Leonid Krivoshein

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=078d0c69-c816-7e1f-053b-5c0208d25b7d@basealt.ru \
    --to=ilyakurdyukov@basealt.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git