mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 18:10:56 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			300 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			300 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #compdef chown chgrp
 | |
| 
 | |
| if [[ CURRENT -eq 2 || CURRENT -eq 3 && $words[CURRENT-1] = -* ]]; then
 | |
|   if [[ $words[1] = chgrp ]] || compset -P '*[:.]'; then
 | |
|     _groups
 | |
|   else
 | |
|     if [[ $OSTYPE = (solaris*|hpux*) ]]; then
 | |
|       _users -S ':' -q
 | |
|     else
 | |
|       _users -S '.' -q
 | |
|     fi
 | |
|   fi
 | |
| else
 | |
|   _files
 | |
| fi
 |