From 153d1a33966c91f8a2026a8110c370be96c910f3 Mon Sep 17 00:00:00 2001 From: contrixed Date: Fri, 31 Jul 2015 11:02:40 -0400 Subject: .functions: Improve `fs` Accept file names with a dash without interpreting them as a command-line flag. Found by running `shellcheck`. Closes #565. --- .functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.functions b/.functions index a5e3736..4a148d6 100644 --- a/.functions +++ b/.functions @@ -64,7 +64,7 @@ function fs() { if [[ -n "$@" ]]; then du $arg -- "$@"; else - du $arg .[^.]* *; + du $arg .[^.]* ./*; fi; } -- cgit v1.2.3