help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to have Bash alias on variable name


From: Lawrence Velázquez
Subject: Re: How to have Bash alias on variable name
Date: Sat, 09 Sep 2023 17:57:54 -0400
User-agent: Cyrus-JMAP/3.9.0-alpha0-711-g440737448e-fm-20230828.001-g44073744

On Sat, Sep 9, 2023, at 5:02 PM, Budi wrote:
> How do we have Bash alias for variable name e.g.
>
>  VAR=99
>
>  alias n=VAR
>
>  echo $n
>
>  # should show 99 but can't

https://mywiki.wooledge.org/BashFAQ/006#Evaluating_indirect.2Freference_variables

-- 
vq



reply via email to

[Prev in Thread] Current Thread [Next in Thread]