mirror of
				https://git.tukaani.org/xz.git
				synced 2025-10-31 13:32:56 +00:00 
			
		
		
		
	xzgrep: Avoid passing both -q and -l to grep.
The behavior of grep -ql varies: - GNU grep behaves like grep -q. - OpenBSD grep behaves like grep -l. POSIX doesn't make it 100 % clear what behavior is expected. Anyway, using both -q and -l at the same time makes no sense so both options simply should never be used at the same time. Thanks to Christian Weisgerber.
This commit is contained in:
		
							parent
							
								
									94a1a869ee
								
							
						
					
					
						commit
						f229fa32bf
					
				| @ -106,9 +106,11 @@ while test $# -ne 0; do | ||||
|     with_filename=1 | ||||
|     continue;; | ||||
|   (-l | --files-with-*) | ||||
|     files_with_matches=1;; | ||||
|     files_with_matches=1 | ||||
|     continue;; | ||||
|   (-L | --files-witho*) | ||||
|     files_without_matches=1;; | ||||
|     files_without_matches=1 | ||||
|     continue;; | ||||
|   (-h | --no-f*) | ||||
|     no_filename=1;; | ||||
|   (-V | --v | --ve | --ver | --vers | --versi | --versio | --version) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user