diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-10 14:19:57 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-10 14:19:57 +1200 |
commit | a553ab90d82cee281b135331806126466c547b94 (patch) | |
tree | 721635acb484a454094677d7137fa0ed56319a7d | |
parent | Fail early if VCS binaries not found (diff) | |
download | dotfiles-a553ab90d82cee281b135331806126466c547b94.tar.gz dotfiles-a553ab90d82cee281b135331806126466c547b94.zip |
Use _ to prevent polluting namespace
-rw-r--r-- | bash/bashrc.d/prompt.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index 6864ce19..f3f1416f 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -184,7 +184,7 @@ prompt() { # Show the count of background jobs in curly brackets job) local jobc=0 - while read -r line; do + while read -r _; do ((jobc++)) done < <(jobs) if ((jobc > 0)); then |