aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-09-21 23:33:36 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-09-21 23:33:36 +1200
commit61fe2a0a85bf59a8c9306e888416900fa3c27f17 (patch)
tree13ba1b12f77127a67f33a7fa1d490de4d52126e9 /bash
parentEnhance parsing of hg status a bit too (diff)
downloaddotfiles-61fe2a0a85bf59a8c9306e888416900fa3c27f17.tar.gz
dotfiles-61fe2a0a85bf59a8c9306e888416900fa3c27f17.zip
Correct var definitions for read
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc.d/prompt.bash6
1 files changed, 3 insertions, 3 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash
index e2dfdc87..00f6538e 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -58,7 +58,7 @@ prompt() {
# Safely read status with -z --porcelain
local line ready modified untracked
- while IFS= read -d $'\0' -r line _; do
+ while IFS= read -d $'\0' -r line; do
if [[ $line == [MADRC]* ]]; then
ready=1
fi
@@ -110,7 +110,7 @@ prompt() {
# Safely read status from ``git porcelain''
local line modified untracked
- while IFS= read -d $'\0' -r line _; do
+ while IFS= read -d $'\0' -r line; do
if [[ $line == '?'* ]]; then
untracked=1
else
@@ -168,7 +168,7 @@ prompt() {
# Parse the output of svn info to determine working copy state
local symbol modified untracked
- while read -r symbol; do
+ while read -r symbol _; do
if [[ $symbol == *'?'* ]]; then
untracked=1
else