.functions: Improve fs

Accept file names with a dash without interpreting them as a command-line flag. Found by running `shellcheck`.

Closes #565.
This commit is contained in:
contrixed
2016-02-13 11:11:32 +01:00
committed by Mathias Bynens
parent 16a5d85d17
commit 153d1a3396
+1 -1
View File
@@ -64,7 +64,7 @@ function fs() {
if [[ -n "$@" ]]; then
du $arg -- "$@";
else
du $arg .[^.]* *;
du $arg .[^.]* ./*;
fi;
}