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

Re: Bug#494098: zsh: Prompt expansion of %~ seems broken.




On 11 Aug 2008, at 2:31 pm, Clint Adams wrote:

On Mon, Aug 11, 2008 at 09:19:37AM +0100, Magnus Therning wrote:
Expansion of %~ seems to have been broken. This is the behaviour I see:

 ~: print $PS1
 %~:
 ~: print -P %~
 ~
 ~: cd Desktop
 /home/magnus/Desktop: print -P %~

~ grep magnus /etc/passwd
magnus:x:1000:1000:Magnus Therning,,,:/home/magnus/:/bin/zsh


Beats me.  Anyone have ideas?


I'd guess things might work better if your home directory was '/home/ magnus', without the trailing slash.

Cheers,  Duncan.


--
Duncan Sinclair  |  {+44|0}141 548 3095  |  cis.strath.ac.uk
System Administrator
Computer and Information Sciences
University of Strathclyde
The University of Strathclyde is a charitable body, registered in Scotland, number SC015263.





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