This commit is contained in:
rhiannon morris 2022-05-20 12:44:13 +02:00
parent 0838af3d18
commit 48763d2fed
3 changed files with 14 additions and 13 deletions

View file

@ -8,9 +8,9 @@ if -nt { test $# -eq 0 }
define FOUND 69
foreground {
# look for each file (in cwd)
# look for each pattern (in cwd)
forx -E -x$FOUND pat { $@ }
# if file exists, exit with $FOUND, which breaks the loop
# if a file exists, exit with $FOUND, which breaks the loop
elglob -0 files $pat
forx -E -x$FOUND file { $files }
ifthenelse { test -n $dironly } { pwd } { readlink -f $file }