Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Unicode allowables in Environment variables
- X-seq: zsh-workers 53201
- 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 16:10:48 -0800
- Archived-at: <https://zsh.org/workers/53201>
- In-reply-to: <CAH+w=7bRoQKfv6S8vRqjNHZ_ceLWxEsie9RxgNy6Lh2uyBOXmA@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>
Please educate me if I am wrong about Valgrind, but I believe the reason that Valgrind didn’t catch it is that without asserting that you expect to get out the value you put in, to something like Valgrind nothing bad happened. Munging a variable for all it knows is what you intended to do. As you pointed out earlier, you can still access the variable with printenv. So the munged variable only hides access to the original. In that regard it is not leaking either, or it is leaking the same amount to the same variable, because you can still find it.
This was probably missed because few are bold (stupid?) enough to put non-portable Unicode in their path.
> On Nov 4, 2024, at 15:52, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Mon, Nov 4, 2024 at 3:46 PM William DeShazer <earl.deshazer@xxxxxxxxx> wrote:
>>
>> With regard to your Valgrind observation, I am not surprised. Few people would hazard to put Unicode characters in their path name
>
> I meant that I specifically tested your example with valgrind, and
> witnessed the problem repeat, without getting any reported errors or
> leaks.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author