Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Unicode allowables in Environment variables
- X-seq: zsh-workers 53206
- From: William DeShazer <earl.deshazer@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: Unicode allowables in Environment variables
- Date: Mon, 4 Nov 2024 18:17:44 -0800
- Archived-at: <https://zsh.org/workers/53206>
- In-reply-to: <CAH+w=7ZDKegJkBRv3xQQadOKeGmx4AE7EWwTf9iNOZpO1kYFyg@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <91C10172-A533-487F-8D78-20129CA96689@gmail.com> <CAHYJk3SXo5Z26xMtuWUvsU+QvGzTD7oYUCk3QugppG0u4ce1fw@mail.gmail.com> <CAA=-s3yC_bgFheW74=u34YhL-xT-q294qs_L8BC9tKDtLCB7PQ@mail.gmail.com> <5CF1A197-AB70-4D07-BA0C-618213A2ACA1@gmail.com> <C54A42B1-07B6-4726-A7FB-CAD1E73C812A@gmail.com> <CAH+w=7bunCEwaaQSe+bToon3F1yH+iq_Eb35fNO1D9R+zNBGjQ@mail.gmail.com> <CAA=-s3yQUNacMpy7m7Ea2BBt=GgTJGPzhPyKS1hxfCyEgA3tSQ@mail.gmail.com> <CAH+w=7ZLMw_yntU3mnp0YwAmaa8gRif_=N0_4HkXA517offbYA@mail.gmail.com> <CAA=-s3zT5zzbA1YaWLGhSamkQ_s77pHTqw5N6iVCF+uo=gW1Ow@mail.gmail.com> <CAH+w=7bebJ3zatyodiHmT9i0CJW7BHhfC_iA_4+sc93+4+JVpw@mail.gmail.com> <CAH+w=7ZmVjD-3xSSwewSgfVJvWW=CB+=vodSRxgpSwPojYLeqg@mail.gmail.com> <CAA=-s3xovjsEhqmcOLeJ-5TcpcivCKMHn3NTDCnfWGgyJcKXMQ@mail.gmail.com> <CAH+w=7ai4-2_=tzNratoou=gPgZKV4-c_+nFmWBom8Wd8ZWHRw@mail.gmail.com> <CAA=-s3z_0XHG1dN5125MV=XKi3V0tgQguy36P1G0NBvqTE4C8g@mail.gmail.com> <77CB1ACE-0320-4FDD-B832-5E8B3C74B636@gmail.com> <CAA=-s3yReuGTNEybovtnzfHU8A3rC5Nvmx3V7WUmdRECys+PBQ@mail.gmail.com> <CAH+w=7Y5viFEK4UdJCt_tSFxU+f+qa1fzxduWO0+BGhHR2Hbdw@mail.gmail.com> <8BB1E1CA-34D6-4A1A-BC75-150B4EC45835@gmail.com> <CAH+w=7bRoQKfv6S8vRqjNHZ_ceLWxEsie9RxgNy6Lh2uyBOXmA@mail.gmail.com> <5414A062-6AC9-4703-89D6-044170B4A0EC@gmail.com> <CAH+w=7ZjUBSjMoPQ_xZLKsy8mjRy0EQW1YXYasmkrhgfSJpF-A@mail.gmail.com> <CAH+w=7ZDKegJkBRv3xQQadOKeGmx4AE7EWwTf9iNOZpO1kYFyg@mail.gmail.com>
You mentioned, or the issue that you referenced, mentioned that it was a zle interaction. I think candidates for odd insertions would be insert_unicode_char, insert-composed-char, expand-absolute-path, bracketed-paste-magic, send-invisible. While those look interesting as candidates, the zle is only involved with handling strings if it has been invoked, correct? I’m not sure there is a logic path to trigger these kinds of events. I figured I should mention it, since you have a better knowledge of the code-base than I do.
On a separate but possibly related note, More frequently lately, I have been having a heck of a time with a tty interrupt that happens when I do command-K, and then ls. The l gets gobbled, and then the tab completion on the ’s’ engages the tty interrupt. I have been reticent to explore it, however if the zle is injecting/transforming characters randomly, these issues could be related. I can’t reliably reproduce it and if we solve this issue, maybe the other will mysteriously go away. Wishful thinking.
> On Nov 4, 2024, at 17:28, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Mon, Nov 4, 2024 at 4:58 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>>
>> What I found is that in the erroring case, when we get to subst.c:169
>> in prefork(), the value returned from paramsubst() contains
>>
>> App\360\224\256Bundles/Configurations/Zsh/•Z
>
> It may be remnulargs() that then mangles this into something that
> attempts globbing.
>
> On the Ubuntu filesystem when I "mkdir" with the string copy-pasted
> from William's original message, I get a third variation:
>
> App\360\237\224\256Bundles
>
>> However, if I then "fix" ZDOTDIR by assigning from $(printenv), upon
>> getting back to that line in prefork() the value instead contains
>>
>> App\360\203\277\203\264\256Bundles/Configurations/Zsh/ \202Z
>
> I still get this transformation on Ubuntu, though, so it's not
> entirely a MacOS wcwidth thing.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author