GNU bug report logs -
#18805
24.3; tramp adds /dev/null, breaks M-x grep
Previous Next
Reported by: trentbuck <at> gmail.com (Trent W. Buck)
Date: Thu, 23 Oct 2014 07:45:02 UTC
Severity: normal
Tags: notabug
Found in version 24.3
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Michael Albinus <michael.albinus <at> gmx.de> writes:
>> The problem I'm having is when *in tramp* I do
>> M-x grep RET git grep -nH foo
>> tramp helpfully appends " /dev/null" to the command, breaking it:
>> fatal: '/dev/null' is outside repository
>>
>> If I change it to
>> M-x grep RET git grep -nH foo #
>> then I get the behaviour I want.
>>
>> This issue *DOES NOT* occur in local directories, only over tramp.
>
> But this is neither a bug of Tramp nor of the grep command. The error
> message "fatal: '/dev/null' is outside repository" comes from git.
>
> As you have said the other message, /dev/null is added due to the
> setting of grep-use-null-device. This is computed according to the needs
> of grep, and not of git.
>
> So I wouldn't regard this as an error.
PS: If you use
M-x compile RET git grep -nH foo
there's no problem.
Best regards, Michael.
This bug report was last modified 10 years and 242 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.