From dd029bddc853eebb5aa96fc2d35c29792e9ad15e Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Fri, 5 Aug 2022 22:57:36 +0000 Subject: src: 'test -x' instead of 'test -f' while we're here, remove spare curly braces. --- rc/bin/src | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'rc/bin/src') diff --git a/rc/bin/src b/rc/bin/src index 175800bfb..db02fa2ac 100755 --- a/rc/bin/src +++ b/rc/bin/src @@ -48,12 +48,10 @@ while(~ $1 -*) if(~ $#* 0) usage for(i in $*){ - if(~ $i /*){ + if(~ $i /*) test -f $i && go $i && exit - } - if not{ + if not for(f in $path^/^$i) - test -f $f && go $f && exit - } + test -x $f && go $f && exit echo 'src: can''t find '$i } -- cgit v1.2.3