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: 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_