get value of an alias in bash
Fresh3 days ago
Mar 15, 20264639 viewsConfidence Score0%
0%
Problem
I recently switched from tcsh to bash, and I'm used to being able to do things like but since gives in bash, I can't do this anymore. Is there an equivalent in bash, so I don't have to do ?
Error Output
sudo `alias netstat`
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: get value of an alias in bash
Low Risk
Bash stores its list of aliases in the associative array . The equivalent of is then . However, I would suggest the following instead, which works with builtin shell commands and deals correctly with quoting: There's still a lot that won't work with…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix