* ZSH equivalent of Bash' ! operator
@ 2023-08-26 7:51 Budi
2023-08-26 9:20 ` Philippe Troin
0 siblings, 1 reply; 2+ messages in thread
From: Budi @ 2023-08-26 7:51 UTC (permalink / raw)
To: Zsh Users
What'd be ZSH equivalent of Bash' ! operator that indirectly references variable
$ m=foo; foo=bar ; echo ${!m}
bar
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ZSH equivalent of Bash' ! operator
2023-08-26 7:51 ZSH equivalent of Bash' ! operator Budi
@ 2023-08-26 9:20 ` Philippe Troin
0 siblings, 0 replies; 2+ messages in thread
From: Philippe Troin @ 2023-08-26 9:20 UTC (permalink / raw)
To: Budi, Zsh Users
On Sat, 2023-08-26 at 14:51 +0700, Budi wrote:
> What'd be ZSH equivalent of Bash' ! operator that indirectly
> references variable
>
> $ m=foo; foo=bar ; echo ${!m}
% m=foo; foo=bar; echo ${(P)m}
bar
Phil.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-26 9:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-26 7:51 ZSH equivalent of Bash' ! operator Budi
2023-08-26 9:20 ` Philippe Troin
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).