Re: Various small leaks

2023-06-21 Thread Grisha Levit
On Wed, Jun 21, 2023 at 3:09 PM Chet Ramey wrote: > Have you considered running `make tests' on a bash binary built with this > configuration? I'd be interested in those results. I have, but unfortunately this generates quite a few reports that are a little tricky to chase down. The main difficu

Re: Various small leaks

2023-06-21 Thread Chet Ramey
On 6/21/23 1:36 PM, Grisha Levit wrote: I actually couldn't figure out how to get useful results from LeakSanitizer on macOS. It's disabled in Apple's build of clang and though it's enabled in homebrew's it seemed to be producing bogus results with unusable traces. So I was testing on Linux, c

Re: Various small leaks

2023-06-21 Thread Grisha Levit
On Wed, Jun 21, 2023, 10:08 Chet Ramey wrote: > > On 6/17/23 4:02 AM, Grisha Levit wrote: > > Found mostly by normal usage running a no-bash-malloc build with clang's > > LeakSanitizer enabled. > > Are you running this on macOS or some other system? I actually couldn't figure out how to get usefu

Re: Various small leaks

2023-06-21 Thread Chet Ramey
On 6/17/23 4:02 AM, Grisha Levit wrote: Found mostly by normal usage running a no-bash-malloc build with clang's LeakSanitizer enabled. Are you running this on macOS or some other system? -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'

Re: Alias in command substitution

2023-06-21 Thread Kerin Millar
On Wed, 21 Jun 2023 09:01:20 -0400 Greg Wooledge wrote: > On Wed, Jun 21, 2023 at 09:54:30AM +0100, Kerin Millar wrote: > > On Wed, 21 Jun 2023 14:11:28 +0530 > > LitHack wrote: > > > > > But why this not worked in zsh. > > > > I don't use zsh. A fairly plausible explanation would be that its

Re: Alias in command substitution

2023-06-21 Thread Greg Wooledge
On Wed, Jun 21, 2023 at 09:54:30AM +0100, Kerin Millar wrote: > On Wed, 21 Jun 2023 14:11:28 +0530 > LitHack wrote: > > > But why this not worked in zsh. > > I don't use zsh. A fairly plausible explanation would be that its alias > builtin ignores the request to declare an alias, if issued in a

Re: Fwd: Command execution by creating file.

2023-06-21 Thread Greg Wooledge
On Wed, Jun 21, 2023 at 09:25:02AM +0530, LitHack wrote: > Sorry instead of alias we have to use the function. > > Corrected command: mkdir dir;cd dir;<>file;file()bash;* Even if we correct your "corrected" code for you, the basic issue remains: what "bug" are you claiming exists here? How does

Re: Alias in command substitution

2023-06-21 Thread Kerin Millar
On Wed, 21 Jun 2023 14:11:28 +0530 LitHack wrote: > But why this not worked in zsh. I don't use zsh. A fairly plausible explanation would be that its alias builtin ignores the request to declare an alias, if issued in a subshell. -- Kerin Millar

Re: Alias in command substitution

2023-06-21 Thread Kerin Millar
On Wed, 21 Jun 2023 13:40:56 +0530 LitHack wrote: > Normally declaring a alias inside the command substitution would not > reflect in main shell like > lithack@aura:~$ `alias l=ls` > lithack@aura:~$ l > l: command not found > But using this command . > lithack@aura:~$ `alias l=ls;alia

Alias in command substitution

2023-06-21 Thread LitHack
Normally declaring a alias inside the command substitution would not reflect in main shell like lithack@aura:~$ `alias l=ls` lithack@aura:~$ l l: command not found But using this command . lithack@aura:~$ `alias l=ls;alias` lithack@aura:~$ l api Desktop Downloads Music __py_