ref: dd029bddc853eebb5aa96fc2d35c29792e9ad15e
parent: 53f2b41ec64895a1d8bcebeeb7824c59e854eb13
author: Ori Bernstein <[email protected]>
date: Fri Aug 5 18:57:36 EDT 2022
src: 'test -x' instead of 'test -f' while we're here, remove spare curly braces.
--- a/rc/bin/src
+++ b/rc/bin/src
@@ -48,12 +48,10 @@
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
}