Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#494098: zsh: Prompt expansion of %~ seems broken.
- X-seq: zsh-users 13134
- From: "Magnus Therning" <magnus@xxxxxxxxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Bug#494098: zsh: Prompt expansion of %~ seems broken.
- Date: Tue, 12 Aug 2008 08:45:06 +0100
- Cc: "Clint Adams" <schizo@xxxxxxxxxx>, 494098@xxxxxxxxxxxxxxx, zsh-users@xxxxxxxxxx
- In-reply-to: <080811082908.ZM28133@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080807084744.29306.54325.reportbug@xxxxxxxxxxxxxxxxxxxxxx> <20080807230430.GA27426@xxxxxxxx> <e040b520808110119l7e17a9d0yed158a1039d41b91@xxxxxxxxxxxxxx> <20080811133157.GA3143@xxxxxxxx> <080811082908.ZM28133@xxxxxxxxxxxxxxxxxxxxxx>
On Mon, Aug 11, 2008 at 4:29 PM, Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Aug 11, 1:31pm, Clint Adams wrote:
> } Subject: Re: Bug#494098: zsh: Prompt expansion of %~ seems broken.
> }
> } On Mon, Aug 11, 2008 at 09:19:37AM +0100, Magnus Therning wrote:
> } > >>
> } > >> ~: cd Desktop
> } > >> /home/magnus/Desktop: print -P %~
> } > >> /home/magnus/Desktop
> } > >> /home/magnus/Desktop: cd ..
> } > >> /home/magnus: print -P %~
> } > >> /home/magnus
> }
> } Beats me. Anyone have ideas?
>
> It's the trailing slash in the value of the home directory in passwd:
>
>> ~ grep magnus /etc/passwd
>> magnus:x:1000:1000:Magnus Therning,,,:/home/magnus/:/bin/zsh
>
> [[ /home/magnus/ != /home/magnus ]] so $HOME is not being recognized as
> a prefix of any subdirectory.
Ah, yes indeed! Removing that extra slash at the end fixed it.
Thanks, and sorry for raising a bug that so clearly was a user-error
;-)
/M
Messages sorted by:
Reverse Date,
Date,
Thread,
Author