bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Re: add custom environment variable in bash source code


From: Alex fxmbsw7 Ratchev
Subject: Re: Re: Re: add custom environment variable in bash source code
Date: Thu, 18 Aug 2022 01:53:09 +0200

no .. i say im not good at .c yet

On Thu, Aug 18, 2022, 01:36 <b1431736437@163.com> wrote:

> Sorry, I don't understand what you want me, you can send a .diff file
> tells me how to do?
>
> 在 2022-08-18 07:26:45,"Alex fxmbsw7 Ratchev" <fxmbsw7@gmail.com> 写道:
>
>
>
>
> On Thu, Aug 18, 2022, 01:19 <b1431736437@163.com> wrote:
>
> Because I'm using Android, Android doesn't support #!/bin/sh and
> #!/bin/bash, there is a dynamic library that fixes it, so I want to
> automatically add LD_PRELOAD before starting bash to make this dynamic
> library work , I want to modify the source code of bash to make it
> effective, not the bash.bashrc and profile files in the etc directory,what
> should I do, can you send a video attachment to teach me?
>
>
>
> erm, im not yet a .c number
>
>
>
>
>
>
>
> 在 2022-08-18 00:19:24,"Alex fxmbsw7 Ratchev" <fxmbsw7@gmail.com> 写道:
>
> maybe just 'eval "declare -gx var=value"' in bash.c code
>
>
> what i meant with this is hint at something a .c coder can do
> can u code .c ?
>
>
> .. search in the codes the .c named ld preload and ld paths identifiers (
> how they are named ) then search for those, to see where they act
> and add a static prefix yours at a safe position and safe code
>
>
>
>
> On Wed, Aug 17, 2022, 17:53 Chet Ramey <chet.ramey@case.edu> wrote:
>
> On 8/16/22 10:09 PM, b1431736437@163.com wrote:
>
> > Bash Version: 5.1
> > Patch Level: 16
> > Release Status: release
> >
> > Description:
> >          excuse me, how can I join the custom environment variable into
> the source code of Bash, and see this variable when execute env
>
> What is it you want to do? You rarely need to add code to bash to do
> something like that.
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                  ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/
>
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]