* PATCH:
@ 2016-11-25 4:36 Thomas Bereknyei
2016-11-28 23:07 ` PATCH: Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Bereknyei @ 2016-11-25 4:36 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1.1: Type: text/plain, Size: 131 bytes --]
Checks for getent in a more general way. Useful for OS's like NixOS that
don't place binaries in the usual places.
-Tom Bereknyei
[-- Attachment #1.2: Type: text/html, Size: 184 bytes --]
[-- Attachment #2: getentGeneralize.patch --]
[-- Type: application/octet-stream, Size: 322 bytes --]
--- compaudit 2016-11-03 22:42:55.651628433 -0400
+++ compaudit.new 2016-11-03 22:44:06.081365726 -0400
@@ -15,7 +15,7 @@
emulate -L zsh
setopt extendedglob
-[[ -x /usr/bin/getent ]] || getent() {
+[[ -n ${commands[getent]} ]] || getent() {
if [[ $2 = <-> ]]; then
grep ":$2:[^:]*$" /etc/$1
else
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PATCH:
2016-11-25 4:36 PATCH: Thomas Bereknyei
@ 2016-11-28 23:07 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2016-11-28 23:07 UTC (permalink / raw)
To: Thomas Bereknyei, zsh-workers
On Nov 25, 4:36am, Thomas Bereknyei wrote:
}
} Checks for getent in a more general way. Useful for OS's like NixOS that
} don't place binaries in the usual places.
Already applied from workers/39831 as commit c282abc6 on Nov. 6th
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-11-28 23:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-25 4:36 PATCH: Thomas Bereknyei
2016-11-28 23:07 ` PATCH: Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).