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

%B%~%b bug in $PROMPT in 3.1.5 ?



I have this as my PROMPT:

%SUSER: %B(%n)%b HOST: %B(%M)%b TTY: %B(tty%l)%b HIST#: %B(%h)%b
[OLDPWD: %B$OLDPWD%b] [PWD: %B%~%b]%s
$TALK

However, the PWD: part seems to have been broken when I (finally) upgraded to 3.1.5

Note the following, where $PWD = PWD (literally) in some cases

USER: (tjl) HOST: (localhost) TTY: (ttyp1) HIST#: (1758)
[OLDPWD: /Users/tjl] [PWD: ~]
 cd /

USER: (tjl) HOST: (localhost) TTY: (ttyp1) HIST#: (1759)
[OLDPWD: /Users/tjl] [PWD: /]
 cd /private/tmp

USER: (tjl) HOST: (localhost) TTY: (ttyp1) HIST#: (1760)
[OLDPWD: /] [PWD: ~PWD]
 cd ~

USER: (tjl) HOST: (localhost) TTY: (ttyp1) HIST#: (1761)
[OLDPWD: /private/tmp] [PWD: ~]
 cd Library

USER: (tjl) HOST: (localhost) TTY: (ttyp1) HIST#: (1762)
[OLDPWD: /Users/tjl] [PWD: ~PWD]


A 'cc' to me would be appreciated, as I'm not on the zsh-workers list (I am  
on the zsh-users list if a reply there would be appropriate)

Thanks

TjL




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