diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-23 20:22:47 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-23 20:36:45 +1200 |
commit | 443643200d728b4947349b13e2345ec9ae82d203 (patch) | |
tree | 5a8d13f6a39505608ac42d182c864703ca6bc649 /bash/bashrc.d | |
parent | Ignore SC1090 (allow unfollowable dotting) (diff) | |
download | dotfiles-443643200d728b4947349b13e2345ec9ae82d203.tar.gz dotfiles-443643200d728b4947349b13e2345ec9ae82d203.zip |
Add -r to read to placate shellcheck
Diffstat (limited to 'bash/bashrc.d')
-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 69801b90..ff8e4727 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -213,7 +213,7 @@ prompt() { # Show the count of background jobs in curly brackets, if not zero job) local -i jobc - while read ; do + while read -r ; do ((jobc++)) done < <(jobs -p) ((jobc)) && printf '{%u}' "$jobc" |