Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Equivalent for Bash' ${variable_name@P}
- X-seq: zsh-users 29144
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Equivalent for Bash' ${variable_name@P}
- Date: Wed, 16 Aug 2023 13:09:42 +0100 (BST)
- Archived-at: <https://zsh.org/users/29144>
- Importance: Normal
- In-reply-to: <CAH0GyZBA0uWNmV059Mo-mgQbRqQA=aGLMt2D4gGCsJevWoi5bQ@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAH0GyZBA0uWNmV059Mo-mgQbRqQA=aGLMt2D4gGCsJevWoi5bQ@mail.gmail.com>
> On 16/08/2023 12:54 Budi <budikusasi@xxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author