Skip to content
Browse files

read_char -> getc

  • Loading branch information...
1 parent 016194f commit acff47d2e614bbb859db6d84ddca08b57d935033 @jneen committed Jan 12, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/util.sh
View
4 lib/util.sh
@@ -32,7 +32,7 @@ pluralize() {
# trimmed="${trimmed%%*( )}"
#}
-read_char() {
+getc() {
IFS= read -d"$(echo -e '\004')" -n1 "$@"
}
@@ -42,7 +42,7 @@ read_until() {
local out
- while read_char ch; do
+ while getc ch; do
out="${out}${ch}"
case "$out" in
*$glob)

0 comments on commit acff47d

Please sign in to comment.
Something went wrong with that request. Please try again.