GNU bug report logs -
#54470
29.0.50; [PATCH] Add documentation/tests for Eshell argument expansion
Previous Next
Reported by: Jim Porter <jporterbugs <at> gmail.com>
Date: Sun, 20 Mar 2022 01:35:02 UTC
Severity: normal
Tags: patch
Found in version 29.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #32 received at 54470 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 4/15/2022 5:56 AM, Eli Zaretskii wrote:
>> Cc: 54470 <at> debbugs.gnu.org
>> From: Jim Porter <jporterbugs <at> gmail.com>
>> Date: Fri, 1 Apr 2022 22:10:07 -0700
>>
>>> @kbd is right for things that are meant specifically and only as
>>> keyboard input.
>>
>> Thanks for the explanation.
>>
>> Having thought this over further, I think Eli's suggestion to use @samp
>> makes sense for both the globs and the predicates/modifiers, so I've
>> updated my patches to do this.
>
> Thanks. I was about to install these, but then I saw that some of
> the tests you added fail on my system:
[snip]
Thanks for testing. I think this is because `eshell-file-attributes'
calls `expand-file-name' on the FILE argument, which prepends a drive
letter on MS Windows. That makes my code in `eshell-partial-let-func'
(in em-pred-tests.el) fail to identify the fake files.
Can you try the attached patch to see if the tests pass? If it works,
I'll fold it into the previous patches and resubmit them. (It works for
me on an MS Windows system, but I don't have build tools on it, so I
just used the binary release of 28.1 with some of the bits copied from
my patches to test it out.)
There are a few other ways I could fix this, but this seemed like the
best. Now, if `eshell-file-attributes' calls `file-attributes', it
always forwards the FILE argument unchanged, so the wrapping is more
"transparent" in that case. (Note: I'm not sure `eshell-file-attributes'
is even necessary anymore; maybe Tramp handles that for us? I haven't
tested this enough to be confident we can remove it though...)
[fix-ms-windows-tests.patch (text/plain, attachment)]
This bug report was last modified 3 years and 36 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.