Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
~username<TAB> problem on SunOS
- X-seq: zsh-workers 321
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (zsh-workers)
- Subject: ~username<TAB> problem on SunOS
- Date: Wed, 16 Aug 1995 15:41:59 +0200 (MET DST)
At least two people reported that ~username completion causes SEGV on machines
with NIS. It turned out that this problem only occurs on SunOS 4.1.3 but it
doesn't on SunOS 4.1.2. The SEGV happens in the yp_all libc function. Zsh
used yp_all to prefech all usernames from the NIS map. Other shells probably
do not use this function (bash, tcsh). I noticed that zsh can complete
usernames much faster that bash or tcsh and it is probably because zsh uses
yp_all. If you use SunOS 4.1.3 and you experience such problems, either try
to upgrade or downgrade your OS to fix the libc bug, or get a statically
linked binary which compiled with a working libc. The bug may disappear if
you undefine the HAVE_NIS macro in config.h. I think username completion will
work even if HAVE_NIS undefined but it will be much slower (I didn't try that
so it is possible that it doesn't work at all).
It is known that some libc.so.1.9.x versions have this bug but libc.so.1.8.1
doesn't.
Zoltan
Messages sorted by:
Reverse Date,
Date,
Thread,
Author