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

2022-08-18 Thread Martin D Kealey
If you expect LD_PRELOAD to incorporate code into Bash itself, then you need to set it before you launch Bash; setting it once Bash is running is too late. What exactly is the LD_PRELOAD loading for you, and what does THAT do? On Thu, 18 Aug 2022, 09:19 , wrote: > Because I'm using Android, And

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

2022-08-17 Thread Alex fxmbsw7 Ratchev
no .. i say im not good at .c yet On Thu, Aug 18, 2022, 01:36 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" 写道: > > > > > On Thu, Aug 18, 2022, 01:19 wrote: > > Because I'm using Android, An

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

2022-08-17 Thread Alex fxmbsw7 Ratchev
( or use the eval function ( dunno its name and usage ) and eval your two var assignments ) On Thu, Aug 18, 2022, 01:26 Alex fxmbsw7 Ratchev wrote: > > > On Thu, Aug 18, 2022, 01:19 wrote: > >> >> Because I'm using Android, Android doesn't support #!/bin/sh and >> #!/bin/bash, there is a dynam

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

2022-08-17 Thread Alex fxmbsw7 Ratchev
On Thu, Aug 18, 2022, 01:19 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 co