diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-10-10 16:25:47 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-10-10 16:25:47 +1300 |
commit | e1401360121785b7dd7b5b5d7b7ef5b337e5bb39 (patch) | |
tree | ed7e1e9c7020e17d7acbe5a6bb173d6f6d94d854 /bash/bashrc.d/cf.bash | |
parent | Remove brace expansion for grep alias (diff) | |
download | dotfiles-e1401360121785b7dd7b5b5d7b7ef5b337e5bb39.tar.gz dotfiles-e1401360121785b7dd7b5b5d7b7ef5b337e5bb39.zip |
Move array decs inline, remove quotes
Diffstat (limited to 'bash/bashrc.d/cf.bash')
-rw-r--r-- | bash/bashrc.d/cf.bash | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bash/bashrc.d/cf.bash b/bash/bashrc.d/cf.bash index db715c2f..66917375 100644 --- a/bash/bashrc.d/cf.bash +++ b/bash/bashrc.d/cf.bash @@ -19,9 +19,8 @@ cf() { # Count files and print; use a subshell so options are unaffected ( - declare -a files shopt -s dotglob nullglob - files=("$dir"/*) + declare -a files=("$dir"/*) printf '%d\t%s\n' "${#files[@]}" "$dir" ) } |