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

Re: PATCH: missing _user@host



Ollivier Robert (roberto@xxxxxxxxxxxxxx) wrote:
> According to Ollivier Robert:
> > Could you please use a filename with '@' in it ? It can screw up some
> 
> Of course, one has to read "withOUT a '@'"... Sorry.

I knew I was tempting fate with that `@' ...

Index: Completion/User/_my_accounts
===================================================================
RCS file: /usr/local/cvsroot/zsh/Completion/User/_my_accounts,v
retrieving revision 1.3
diff -u -r1.3 _my_accounts
--- Completion/User/_my_accounts	1999/09/28 10:32:21	1.3
+++ Completion/User/_my_accounts	1999/09/28 10:34:47
@@ -10,4 +10,4 @@
   accounts_users_hosts=( $my_accounts )
 fi
 
-_user@host "$@"
+_user_at_host "$@"
Index: Completion/User/_other_accounts
===================================================================
RCS file: /usr/local/cvsroot/zsh/Completion/User/_other_accounts,v
retrieving revision 1.4
diff -u -r1.4 _other_accounts
--- Completion/User/_other_accounts	1999/09/28 10:32:21	1.4
+++ Completion/User/_other_accounts	1999/09/28 10:34:52
@@ -10,4 +10,4 @@
   accounts_users_hosts=( $other_accounts )
 fi
 
-_user@host "$@"
+_user_at_host "$@"
Index: Completion/User/_user@host
===================================================================
RCS file: _user@host
diff -N _user@host
--- /tmp/cvsNB3LWJ	Tue Sep 28 11:35:36 1999
+++ /dev/null	Tue May  5 21:32:27 1998
@@ -1,15 +0,0 @@
-#autoload
-
-local expl nm="$compstate[nmatches]"
-
-if [[ -prefix 1 *@ ]]; then
-  local user=${PREFIX/@}
-  compset -P 1 '*@'
-  _description expl "hostnames for $user"
-  _combination accounts_users_hosts users="$user" hosts "$expl[@]" "$@"
-else
-  _description expl "usernames"
-  _combination accounts_users_hosts users -S@ -q "$expl[@]" "$@"
-fi
-
-[[ nm -ne compstate[nmatches] ]]
Index: Completion/User/_user_at_host
===================================================================
RCS file: _user_at_host
diff -N _user_at_host
--- /dev/null	Tue May  5 21:32:27 1998
+++ _user_at_host	Mon Sep 27 14:21:31 1999
@@ -0,0 +1,15 @@
+#autoload
+
+local expl nm="$compstate[nmatches]"
+
+if [[ -prefix 1 *@ ]]; then
+  local user=${PREFIX/@}
+  compset -P 1 '*@'
+  _description expl "hostnames for $user"
+  _combination accounts_users_hosts users="$user" hosts "$expl[@]" "$@"
+else
+  _description expl "usernames"
+  _combination accounts_users_hosts users -S@ -q "$expl[@]" "$@"
+fi
+
+[[ nm -ne compstate[nmatches] ]]



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