#354633 zsh-static: %n in prompt expansion no longer set as root with 4.3.0-dev-5-1

Package:
zsh-static
Source:
zsh
Description:
shell with lots of features (static link)
Submitter:
Mark Nipper
Date:
2014-11-14 08:57:09 UTC
Severity:
normal
Blocked By:
Bug Title
471208

  2

libncurses5: ncurses+dietlibc

wishlist stable testing unstable almost 12 years ago

#354633#5
Date:
2006-02-27 20:54:36 UTC
From:
To:
        I set my prompt using:
---
export PS1="%B%n%b@%U%m%u/%l:%~> "

With 4.3.0-dev-5-1 and logged in as root, %n is empty and so my
prompt always starts with @.  I tried dropping the bold clause
around the %n, but that didn't help.  It also doesn't happen to
any other user account but root.  This problem did not happen
with 4.3.0-dev-2-4.

#354633#10
Date:
2006-03-01 19:53:02 UTC
From:
To:
What does `getent passwd root` output?
#354633#15
Date:
2006-03-02 00:00:44 UTC
From:
To:
root:x:0:0:root:/root:/bin/zsh4-static
#354633#20
Date:
2006-03-02 00:04:37 UTC
From:
To:
Ah.  Are you experiencing this problem with zsh or only with zsh-static?
#354633#25
Date:
2006-03-02 00:18:00 UTC
From:
To:
        I just tried /bin/zsh instead of zsh-static and both this
bug (354633) and bug 354631 went away.  What's the difference
now?  Neither problem happened in previous zsh-static's.

#354633#30
Date:
2006-03-02 00:29:27 UTC
From:
To:
Previously, zsh-static still relied on /lib/libnss* to get
passwd/group data.  This caused problems when those libraries
were unavailable, mismatched, or corrupt.  Now zsh-static will
function without them, though now we seem to have a new problem.

#354633#35
Date:
2006-03-02 00:33:42 UTC
From:
To:
        I just tested /bin/zsh on my machines which are using
LDAP for NSS and /bin/zsh fixed the two reported bugs also.  So I
guess the trick is to get zsh-static to use the libnss* libraries
if they are present, but not to rely on them.

#354633#42
Date:
2008-12-30 00:13:58 UTC
From:
To:
I can reproduce this with zsh-static 4.3.6


Richard

#354633#47
Date:
2008-12-30 16:08:51 UTC
From:
To:
block 354631 by 471208
block 354633 by 471208
quit

Adding blocking relationships.