read with -d (not standard)

This commit is contained in:
Thomas Levine 2016-04-10 17:18:32 +00:00
parent a084577951
commit 562489e795
1 changed files with 2 additions and 13 deletions

15
urchin
View File

@ -226,14 +226,6 @@ plural () {
fi
}
read_many() {
if delimiter="${1}" && shift; then
while test "${#}" -gt 0; do
echo "while read -d '${delimiter}'; do"
done
fi
}
has_shebang_line() {
head -n 1 "${1}" | grep -v '^#!/bin/sh$' | grep -q '^#!'
}
@ -473,12 +465,9 @@ report_outcome() {
sorted_log_file=$(mktemp_file)
cat "${log_file}" | LC_COLLATE=C sort > "${sorted_log_file}"
while read line; do
path=$(echo "${line}" | cut -f1)
while read -d "${GS}" line; do
read -d "${FS}" path the_shell result file_elapsed
abspath=${urchin_tmp}/${path}
the_shell=$(echo "${line}" | cut -f2)
result=$(echo "${line}" | cut -f3)
file_elapsed=$(echo "$line" | cut -f4)
prevdir="${currentdir}"
currentdir="$(dirname -- "${path}")"