* Equivalent for Bash' ${variable_name@P}
@ 2023-08-16 11:54 Budi
2023-08-16 12:09 ` Peter Stephenson
0 siblings, 1 reply; 3+ messages in thread
From: Budi @ 2023-08-16 11:54 UTC (permalink / raw)
To: zsh-users
What zsh equivalent for Bash' ${variable_name@P} for printing shell
prompt prefix string ?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Equivalent for Bash' ${variable_name@P}
2023-08-16 11:54 Equivalent for Bash' ${variable_name@P} Budi
@ 2023-08-16 12:09 ` Peter Stephenson
2023-08-16 13:07 ` Budi
0 siblings, 1 reply; 3+ messages in thread
From: Peter Stephenson @ 2023-08-16 12:09 UTC (permalink / raw)
To: zsh-users
> On 16/08/2023 12:54 Budi <budikusasi@gmail.com> wrote:
> What zsh equivalent for Bash' ${variable_name@P} for printing shell
> prompt prefix string ?
${(%%)variable_name}
is the nearest, but as I expect you've discovered the actual prompt
escapes are totally different.
pws
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Equivalent for Bash' ${variable_name@P}
2023-08-16 12:09 ` Peter Stephenson
@ 2023-08-16 13:07 ` Budi
0 siblings, 0 replies; 3+ messages in thread
From: Budi @ 2023-08-16 13:07 UTC (permalink / raw)
To: Peter Stephenson; +Cc: zsh-users
Simply works well
Thanks
On 8/16/23, Peter Stephenson <p.w.stephenson@ntlworld.com> wrote:
>> On 16/08/2023 12:54 Budi <budikusasi@gmail.com> wrote:
>> What zsh equivalent for Bash' ${variable_name@P} for printing shell
>> prompt prefix string ?
>
> ${(%%)variable_name}
>
> is the nearest, but as I expect you've discovered the actual prompt
> escapes are totally different.
>
> pws
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-08-16 13:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-16 11:54 Equivalent for Bash' ${variable_name@P} Budi
2023-08-16 12:09 ` Peter Stephenson
2023-08-16 13:07 ` Budi
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).