Skip to content

Commit

Permalink
shellspec_readline: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1nksm committed May 11, 2020
1 parent 21840dc commit 7fc9c9c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/general.sh
Expand Up @@ -570,9 +570,6 @@ shellspec_exists_file() {
}

shellspec_readline() {
# Includes workaround for ksh with coverage (Do not use `IFS= read -r`)
set -- "$IFS" "$@" && IFS=''
read -r "$2" &&:
set -- "$?" "$1" && IFS="$2"
return "$1"
# Includes workaround for ksh with coverage (Do not use `while IFS= read -r`)
IFS= read -r "$1"
}

0 comments on commit 7fc9c9c

Please sign in to comment.