| 
				
			 | 
			
			
				@@ -41,12 +41,14 @@ tlocate() { 
			 | 
		
	
		
			
			| 
				41
			 | 
			
				41
			 | 
			
			
				     # 
			 | 
		
	
		
			
			| 
				42
			 | 
			
				42
			 | 
			
			
				     debug -v JATS__PATH 
			 | 
		
	
		
			
			| 
				43
			 | 
			
				43
			 | 
			
			
				     local trypath 
			 | 
		
	
		
			
			| 
				
			 | 
			
				44
			 | 
			
			
				+    local tmatches 
			 | 
		
	
		
			
			| 
				44
			 | 
			
				45
			 | 
			
			
				     for trypath in ${JATS__PATH//:/ }; do 
			 | 
		
	
		
			
			| 
				45
			 | 
			
				46
			 | 
			
			
				         debug -v trypath 
			 | 
		
	
		
			
			| 
				46
			 | 
			
				47
			 | 
			
			
				         test -n "$trypath" || continue 
			 | 
		
	
		
			
			| 
				47
			 | 
			
				48
			 | 
			
			
				         test -d "$trypath" || continue 
			 | 
		
	
		
			
			| 
				48
			 | 
			
				
			 | 
			
			
				-        case $(jattool tfind -f ALL "$trypath" | grep -c " $TestId$") in 
			 | 
		
	
		
			
			| 
				49
			 | 
			
				
			 | 
			
			
				-            1)  jattool tfind "$trypath"; return 0 ;; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				49
			 | 
			
			
				+        tmatches=$(jattool tfind -f ALL "$trypath" | grep "^$TestId	" ) 
			 | 
		
	
		
			
			| 
				
			 | 
			
				50
			 | 
			
			
				+        case $(wc -l <<<"$tmatches") in 
			 | 
		
	
		
			
			| 
				
			 | 
			
				51
			 | 
			
			
				+            1)  cut -d'	' -f3 <<<"$tmatches"; return 0 ;; 
			 | 
		
	
		
			
			| 
				50
			 | 
			
				52
			 | 
			
			
				             *)  continue ;; 
			 | 
		
	
		
			
			| 
				51
			 | 
			
				53
			 | 
			
			
				         esac 
			 | 
		
	
		
			
			| 
				52
			 | 
			
				54
			 | 
			
			
				     done 
			 |