aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-06-07 00:05:20 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-06-07 00:05:20 +1200
commitfd5ef6c09fce0d59280bb9ab2090a81a26508b95 (patch)
tree15fea2352719981ef2f6d2c282bd0411e505a86b /bash/bashrc.d
parentRemove duplicate declaration (diff)
downloaddotfiles-fd5ef6c09fce0d59280bb9ab2090a81a26508b95.tar.gz
dotfiles-fd5ef6c09fce0d59280bb9ab2090a81a26508b95.zip
Consistent alphabetical order for read opts
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r--bash/bashrc.d/prompt.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash
index 51e0cbc5..7b12a2a2 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -98,7 +98,7 @@ prompt() {
# Safely read status with -z --porcelain
local line
local -i ready modified untracked
- while IFS= read -r -d '' line ; do
+ while IFS= read -d '' -r line ; do
if [[ $line == [MADRCT]* ]] ; then
ready=1
fi
@@ -147,7 +147,7 @@ prompt() {
# Safely read status with -0
local line
local -i modified untracked
- while IFS= read -r -d '' line ; do
+ while IFS= read -d '' -r line ; do
if [[ $line == '?'* ]] ; then
untracked=1
else