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 13131
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Clint Adams <schizo@xxxxxxxxxx>, Magnus Therning <magnus@xxxxxxxxxxxx>, 494098@xxxxxxxxxxxxxxx
- Subject: Re: Bug#494098: zsh: Prompt expansion of %~ seems broken.
- Date: Mon, 11 Aug 2008 08:29:08 -0700
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <20080811133157.GA3143@xxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080807084744.29306.54325.reportbug@xxxxxxxxxxxxxxxxxxxxxx> <20080807230430.GA27426@xxxxxxxx> <e040b520808110119l7e17a9d0yed158a1039d41b91@xxxxxxxxxxxxxx> <20080811133157.GA3143@xxxxxxxx>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author