all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
To: Noam Postavsky <npostavs@gmail.com>
Cc: 32093@debbugs.gnu.org, Michael Albinus <michael.albinus@gmx.de>
Subject: bug#32093: 27.0.50; M-x grep appends /dev/null to command line
Date: Sun, 08 Jul 2018 14:30:26 +0200	[thread overview]
Message-ID: <878t6lewpp.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <87va9pdin0.fsf@gmail.com> (Noam Postavsky's message of "Sun, 08 Jul 2018 08:19:47 -0400")

Noam Postavsky <npostavs@gmail.com> writes:

> David Kastrup <dak@gnu.org> writes:
>
>> This code actually is considerably old, older than what I remember
>> having worked (though it's sort of hard to tell since the results of
>> autodetection are stored in a session).  So I consider it more likely
>> that the more recent
>>
>> 644cdd1aa0a (Noam Postavsky 2016-09-13 646) (when (eq
>> grep-use-null-filename-separator 'auto-detect)
>
>> is involved here.  At any rate, the principal problem here is that "git
>> grep" is a grep-like command that will usually refuse to work on
>> out-of-tree files (unless --no-index option is given).  So the results
>> from any of the autodetection, based on searching the HELLO file, are
>> sort-of random.
>
> The reason for the current breakage is actually the changes to the HELLO
> file, the string "English" is no longer at the beginning of the line
> since [1: 3589c966b7].

Ok, that's actually funny.

> The reason the auto detection previously worked, despite HELLO not
> being in the current git repository, is that the autodetection works
> with plain "grep", not "git grep".  Autodetection happens before you
> get the prompt, so you haven't even typed in "git" yet.

So basically previously the proposed grep command line and autodetection
was working for me since both system grep and git-grep support -H .

Now while it makes sense to fix the HELLO file problem, I feel that it's
sort of unfortunate that /dev/null is silently tacked onto the command
line after user entry completes as opposed to the flags which are
entered previous to that.  But I don't have a good idea how to do that
while giving the user something sensible and editable to work with.

-- 
David Kastrup





  reply	other threads:[~2018-07-08 12:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-08  9:33 bug#32093: 27.0.50; M-x grep appends /dev/null to command line David Kastrup
2018-07-08  9:51 ` Michael Albinus
2018-07-08  9:53   ` David Kastrup
2018-07-08 10:05     ` Michael Albinus
2018-07-08 11:17       ` David Kastrup
2018-07-08 12:19         ` Noam Postavsky
2018-07-08 12:30           ` David Kastrup [this message]
2018-07-08 19:04           ` Eli Zaretskii
2018-07-08 19:11             ` David Kastrup
2018-07-09 21:43             ` Noam Postavsky
2018-07-10  7:33               ` David Kastrup
2018-07-10 15:55               ` Eli Zaretskii
2018-07-10 22:04                 ` Noam Postavsky
2018-07-09 23:10             ` Noam Postavsky

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=878t6lewpp.fsf@fencepost.gnu.org \
    --to=dak@gnu.org \
    --cc=32093@debbugs.gnu.org \
    --cc=michael.albinus@gmx.de \
    --cc=npostavs@gmail.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.