[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Alias in command substitution
From: |
LitHack |
Subject: |
Alias in command substitution |
Date: |
Wed, 21 Jun 2023 13:40:56 +0530 |
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__ v v.zip
Arjun dir idafree82_linux.run Pictures snap vi
BurpSuiteCommunity Documents 'IDA Freeware 8.2.desktop' Public
Templates Videos
It runs in main shell. Is this a bug?
Note: This only works in bash shell.
- Alias in command substitution,
LitHack <=