diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-07-30 21:40:34 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-07-30 21:40:34 +1200 |
commit | bfd8cd62a9f60f69d0f242d366f1df48ec9dbb92 (patch) | |
tree | 5d8ee5c456d9e4ff159d553c4931b6c3a1ef1e63 /bash | |
parent | ack-ish alias for git (diff) | |
download | dotfiles-bfd8cd62a9f60f69d0f242d366f1df48ec9dbb92.tar.gz dotfiles-bfd8cd62a9f60f69d0f242d366f1df48ec9dbb92.zip |
Place missing quotes
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bashrc.d/grep.bash | 4 | ||||
-rw-r--r-- | bash/bashrc.d/ls.bash | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bash/bashrc.d/grep.bash b/bash/bashrc.d/grep.bash index ee1bd386..f2586562 100644 --- a/bash/bashrc.d/grep.bash +++ b/bash/bashrc.d/grep.bash @@ -1,14 +1,14 @@ # Function returns calculated options for grep __grepopts() { local grepopts='-I' - local grephelp=$(grep --help 2>/dev/null) + local grephelp="$(grep --help 2>/dev/null)" [[ "$grephelp" == *--color* ]] \ && grepopts="${grepopts} --color=auto" [[ "$grephelp" == *--exclude* ]] \ && grepopts="${grepopts} --exclude=.git{,ignore,modules}" [[ "$grephelp" == *--exclude-dir* ]] \ && grepopts="${grepopts} --exclude-dir=.{cvs,git,hg,svn}" - printf '%s' $grepopts + printf '%s' "$grepopts" } # Alias grep with those options diff --git a/bash/bashrc.d/ls.bash b/bash/bashrc.d/ls.bash index 26448e10..076f34df 100644 --- a/bash/bashrc.d/ls.bash +++ b/bash/bashrc.d/ls.bash @@ -1,10 +1,10 @@ # Function returns calculated options for ls __lsopts() { local lsopts= - local lshelp=$(ls --help 2>/dev/null) + local lshelp="$(ls --help 2>/dev/null)" [[ "$lshelp" == *--color* ]] \ && lsopts="${lsopts} --color=auto" - printf '%s' $lsopts + printf '%s' "$lsopts" } # Alias ls with these options |