- 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
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.
What does `getent passwd root` output?
root:x:0:0:root:/root:/bin/zsh4-static
Ah. Are you experiencing this problem with zsh or only with zsh-static?
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.
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.
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.
I can reproduce this with zsh-static 4.3.6 Richard
block 354631 by 471208 block 354633 by 471208 quit Adding blocking relationships.