From e20600c8a404d35bd4b4c02976ce08f5b166f415 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Fri, 19 May 2000 16:19:39 +0000 Subject: Fix _su to use user's shell for completion after -c again --- Completion/User/_su | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Completion') diff --git a/Completion/User/_su b/Completion/User/_su index e5bf09d80..daf301555 100644 --- a/Completion/User/_su +++ b/Completion/User/_su @@ -6,7 +6,7 @@ local shell comp name usr base (( base=$?+2 )) if [[ CURRENT -eq base ]]; then - compgen -u && return + _users && return usr=root elif [[ CURRENT -ge base+1 ]]; then usr=$words[base] @@ -14,9 +14,9 @@ else return fi -shell=${"$(egrep "^$usr:"