ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Ivan A. Melnikov" <iv@altlinux.org>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] grep -r behavior change
Date: Thu, 13 Sep 2012 23:52:14 +0400
Message-ID: <20120913235214.63a78f4a@deimos.localdomain> (raw)
In-Reply-To: <CAN5SjACvSpZ5qKqwEEo8KtSRvhcaTb_xBDAO36-P4+FskcY4JA@mail.gmail.com>

On Thu, 13 Sep 2012 14:30:50 +0400
Michael Bykov <m.bykov@gmail.com> wrote:
[...]
> 
> ага, спасибо.
> 
> но он ищет не в текущей, а в /tmp, и еще во многих. Очень ненужная
> фича, кажется, потому что забивается вывод.

Фича полезная, я регулярно по ошибке пишу 

grep -R word

вместо

grep -R word .

> 
> И еще - вывод виснет, когда нет прав прочитать файл в текущей
> директории. Я приводил вывод, где дамп эрланга. Виснет, и висит.
> 
> И второе - неясно, как избавиться от этой фичи.
> 
> наивная попытка прописать а .zshrc
> setopt GREP_OPTIONS = -r
> выдала кучу ошибок, естественно. А как нужно неясно.
> 

Попробуйте

export GREP_OPTIONS='-r --color=always'

> Лучше было бы ввести свой ключ для этой фичи, а не переопределять
> классический -r, наверное
> 
> Сейчас куча скриптов накроется у людей
> 

Скрипты не пострадают: алиасы в них не действуют, а -r при чтении из
пайпа никто пишет.

-- 
WBR,
Ivan A. Melnikov


  parent reply	other threads:[~2012-09-13 19:52 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-12 19:42 [sisyphus] grep решил догнать по популярности гугль Michael Bykov
2012-09-12 21:23 ` Dmitry V. Levin
2012-09-13  4:06 ` Ildar Mulyukov
2012-09-13  7:02   ` Michael Bykov
2012-09-13  7:31     ` Michael Bykov
2012-09-13  8:33       ` Мал Скрылёв
2012-09-13  9:27         ` Michael Bykov
2012-09-13 10:13     ` [sisyphus] grep -r behavior change Dmitry V. Levin
2012-09-13 10:30       ` Michael Bykov
2012-09-13 10:38         ` REAL
2012-09-13 11:27           ` Dmitry V. Levin
2012-09-13 12:59             ` REAL
2012-09-13 17:04               ` Michael Bykov
2012-09-13 18:25                 ` thecrux
2012-09-13 19:50                   ` Michael Bykov
2012-09-13 20:04                     ` Михаил Радюк
2012-09-14  4:08                 ` REAL
2012-09-14 11:00                   ` Michael Bykov
2012-09-13 19:52         ` Ivan A. Melnikov [this message]
2012-09-13 19:58           ` Dmitry V. Levin

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=20120913235214.63a78f4a@deimos.localdomain \
    --to=iv@altlinux.org \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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