Skip to content

Commit

Permalink
.functions: Improve fs
Browse files Browse the repository at this point in the history
Accept file names with a dash without interpreting them as a command-line flag. Found by running `shellcheck`.

Closes mathiasbynens#565.
  • Loading branch information
contrixed authored and mathiasbynens committed Feb 13, 2016
1 parent 16a5d85 commit 153d1a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .functions
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function fs() {
if [[ -n "$@" ]]; then
du $arg -- "$@";
else
du $arg .[^.]* *;
du $arg .[^.]* ./*;
fi;
}

Expand Down

0 comments on commit 153d1a3

Please sign in to comment.