ref: 8432d314fc5cd6c4dc30b62c96495b02c3ff82e0
parent: 346396be4095c9fbe98ce3fb4ee9622af26b45d8
author: Michael Forney <mforney@mforney.org>
date: Sat Jan 1 17:51:39 EST 2022
g: fix duplicate files with directory argument When we encounter a directory in the argument list, we don't want to walk every argument, just that directory.
--- a/rc/bin/g
+++ b/rc/bin/g
@@ -29,7 +29,7 @@
shift
for(f in $*){
if(test -d $f)
- files=($files `$nl{walk -f $recurse -- $* \
+ files=($files `$nl{walk -f $recurse -- $f \
| grep -e $fullnames -e $suffixes >[2]/dev/null})
if not
files=($files $f)
--
⑨