Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Check for NIS
- X-seq: zsh-workers 12689
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>, "ZSH workers mailing list" <zsh-workers@xxxxxxxxxxxxxx>
- Subject: Re: Check for NIS
- Date: Tue, 22 Aug 2000 18:07:41 +0000
- In-reply-to: <001201c00c2e$d1063dd0$21c9ca95@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <001201c00c2e$d1063dd0$21c9ca95@xxxxxxxxxxxxxx>
On Aug 22, 3:47pm, Andrej Borsenkow wrote:
} Subject: Check for NIS
}
} We check for NIS by testing return value of ypcat. I am not sure it
} is correct way to do it (actually, I am pretty sure, it is the wrong
} way). ypcat may fail if system currently is not configured for NIS;
} or no server temporary is available. It has nothing to do with having
} needed functions and headers that we actually intend to check for.
The reason the test is done this way is that if the functions are present
but the system is not configured, then it becomes very slow for zsh to
attempt YP and then fall back on other methods.
The intent is to make a best guess at whether YP is configured, and skip
it entirely if not, even if the libraries to enable it might be present.
Yes, the test may be wrong if the server is temporarily unavailable, but
this was the best compromise we could come up with at the time.
There should be some discussion of this in the zsh-workers archive from
about three years ago (maybe longer).
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author