aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-03 00:54:24 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-03 00:54:24 +1300
commit00debf7c1fe8649d3509f758eaa6fc67c7eb54a4 (patch)
tree41d6a6623c8d6cda3e7b28bc3de90e5b588d98a2 /bin
parentWrap fnl(1df) command so out files always opened (diff)
downloaddotfiles-00debf7c1fe8649d3509f758eaa6fc67c7eb54a4.tar.gz
dotfiles-00debf7c1fe8649d3509f758eaa6fc67c7eb54a4.zip
Have finc(1df) dir default to explicit "."
Diffstat (limited to 'bin')
-rwxr-xr-xbin/finc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/finc b/bin/finc
index e8e6b974..109f02b3 100755
--- a/bin/finc
+++ b/bin/finc
@@ -1,3 +1,3 @@
#!/bin/sh
# Count the number of entries from a find(1) condition
-find "$@" -exec printf .%sx {} + | wc -c
+find "${@:-.}" -exec printf .%sx {} + | wc -c