Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: _su



_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]"



Messages sorted by: Reverse Date, Date, Thread, Author