* PATCH: _su
@ 2000-05-19 16:14 Oliver Kiddle
0 siblings, 0 replies; only message in thread
From: Oliver Kiddle @ 2000-05-19 16:14 UTC (permalink / raw)
To: Zsh workers
_su got broken at some point: su user -c command uses the user's shell
to run the command.
Oliver
Index: Completion/User/_su
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/User/_su,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 _su
--- Completion/User/_su 1999/08/23 10:07:40 1.1.1.3
+++ Completion/User/_su 2000/05/19 16:11:51
@@ -14,7 +14,7 @@
return
fi
-shell="${${(M@)${(@f)$(</etc/passwd)}:#root*}##*:}"
+shell="${${(M@)${(@f)$(</etc/passwd)}:#$usr*}##*:}"
compset -n $base
for name in $shell $shell:t -default-; do
comp="$_comps[$name]"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-05-19 16:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-19 16:14 PATCH: _su Oliver Kiddle
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).