Summary: | app-shells/zsh[static] - $USERNAME is not available | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c> |
Component: | Current packages | Assignee: | Piotr Karbowski (RETIRED) <slashbeast> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | t |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Lars Wendler (Polynomial-C) (RETIRED)
2012-04-17 07:51:00 UTC
I just got told that one cannot assign a value to the USERNAME variable. So the test case can be reduced to this: @cobalt:~> echo $SHELL $ZSH_VERSION /bin/zsh 4.3.17 @cobalt:~> echo $USERNAME @cobalt:~> echo $PS1 %n@%m:%~> @cobalt:~> On a dynamically linked zsh USERNAME is not empty: lars@shanghai:~> echo $SHELL $ZSH_VERSION /bin/zsh 4.3.17 lars@shanghai:~> echo $USERNAME lars lars@shanghai:~> echo $PS1 %n@%m:%~> lars@shanghai:~> and thus %n gets expanded in the prompt. might be a bug in glibc ... This is no longer issue with current zsh in tree. |