aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/vared.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-06 14:25:39 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-06 14:26:06 +1300
commit0c4bf7de3604eeb00e2cf590867d43ceb2f0f85d (patch)
tree124ccc28400bfa078f0a701e6610cbba9564a710 /bash/bashrc.d/vared.bash
parentSubstitute bad `continue` for `return` (diff)
downloaddotfiles-0c4bf7de3604eeb00e2cf590867d43ceb2f0f85d.tar.gz
dotfiles-0c4bf7de3604eeb00e2cf590867d43ceb2f0f85d.zip
Remove unneeded semicolon from sh "for VAR ; do"
It turns out the semicolon belongs to the "in" syntax, and is optional without it.
Diffstat (limited to 'bash/bashrc.d/vared.bash')
-rw-r--r--bash/bashrc.d/vared.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/vared.bash b/bash/bashrc.d/vared.bash
index e024f48a..491e5bff 100644
--- a/bash/bashrc.d/vared.bash
+++ b/bash/bashrc.d/vared.bash
@@ -24,7 +24,7 @@ vared() {
return 2
fi
local name
- for name ; do
+ for name do
IFS= read -e -i "${!name}" -p "${prompt:-"$name"=}" -r -- "${name?}"
done
}