Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _su
- X-seq: zsh-workers 11470
- From: Oliver Kiddle <opk@xxxxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxxxxxxxxx>
- Subject: PATCH: _su
- Date: Fri, 19 May 2000 17:14:17 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
_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