GNU bug report logs -
#8653
24.0.50; `M-x grep' output converts `~' to /cygdrive/c/...
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Wed, 11 May 2011 15:34:02 UTC
Severity: wishlist
Tags: notabug
Found in version 24.0.50
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On Thu 12 May 2011, Eli Zaretskii wrote:
>> From: Andy Moreton <andrewjmoreton <at> gmail.com>
>> Date: Thu, 12 May 2011 12:52:18 +0100
>>
>> I use cygwin-mount and don't see this problem.
>
> Not sure what that means. What "this problem"? what _do_ you see in
> Drew's example?
You have managed to elide all of the context here - some quoting is
useful.
As you have observed, emacs and grep are consistent. grep reports tha
absolute paths in its results, and emacs does not change that.
Drew sees results starting with '/cygdrive/c' because he has "HOME=C:\"
in Windows (which Cygwin will translate to 'HOME=/cygdrive/c' in the
Cygwin environment). The cygwin mount table is not setup in his
environment to translate '/cygdrive/c' to '/home'. Adding a mount point
would fix this.
The other point he made was about shortening the output from grep to
substitute ~ for /home/$USER. This would require additional code to
post-process the grep results in emacs.
AndyM
This bug report was last modified 8 years and 60 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.