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

Re: Prompt escapes RE: $'...' and double-quotes



On Mar 7, 11:35am, Andrej Borsenkow wrote:
} Subject: Prompt escapes RE: $'...' and double-quotes
}
} $'...' reminds me - is there any easy way to get prompt escapes embedded?

In 3.1.6, ${(%)...}.  So these should be equivalent:

    print -P "${PS1}"
    print "${(%)PS1}"

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author