mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-11-04 07:21:06 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			589 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			589 B
		
	
	
	
		
			Text
		
	
	
	
	
	
#compdef dd
 | 
						|
 | 
						|
local expl
 | 
						|
 | 
						|
if compset -P 1 'conv='; then
 | 
						|
  # If there's a comma present, ignore up to the last one.  The
 | 
						|
  # test alone will have that effect.
 | 
						|
  compset -p '*,'
 | 
						|
  _wanted values expl conversion \
 | 
						|
      compadd -qS, ascii ebcdic ibm block unblock lcase ucase swab noerror sync
 | 
						|
elif compset -P 1 'if='; then
 | 
						|
  _description files expl 'input file'
 | 
						|
  _tilde_files "$expl[@]"
 | 
						|
elif compset -P 1 'of='; then
 | 
						|
  _description files expl 'output file'
 | 
						|
  _tilde_files "$expl[@]"
 | 
						|
else
 | 
						|
  _wanted values expl option \
 | 
						|
      compadd -S '=' if of ibs obs bs cbs skip files seek count conv
 | 
						|
fi
 |