From 544854aa64d26176d0b6df18071a83a00742a16d Mon Sep 17 00:00:00 2001 From: rupa Date: Wed, 3 Aug 2011 17:33:42 -0400 Subject: [PATCH] revert changes to common pending further thought --- z.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/z.sh b/z.sh index cef3d73..3226a9f 100755 --- a/z.sh +++ b/z.sh @@ -132,7 +132,12 @@ _z() { if( matches[i] && (!short || length(i) < length(short)) ) short = i } if( short == "/" ) return - return short + for( i in matches ) if( matches[i] && i !~ short ) x = 1 + if( x ) return + if( nc ) { + for( i in fnd ) if( tolower(short) !~ tolower(fnd[i]) ) x = 1 + } else for( i in fnd ) if( short !~ fnd[i] ) x = 1 + if( !x ) return short } BEGIN { split(q, a, " ") } {