Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Equivalent for Bash' ${variable_name@P}



Simply works well
Thanks

On 8/16/23, Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
>> 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