Such as may occur if EOF condition experienced by `while read`
# Script Metadata
scriptName="bklog"; # Define basename of script file.
# Script Metadata
scriptName="bklog"; # Define basename of script file.
-scriptVersion="0.1.32"; # Define version of script.
+scriptVersion="0.1.33"; # Define version of script.
scriptURL="https://gitlab.com/baltakatei/ninfacyzga-01"; # Define website hosting this script.
scriptTimeStartEpoch="$(date +%s)"; # Save start time of script in epoch seconds
scriptTimeStart="$(date +%Y%m%dT%H%M%S.%N)"; # YYYYmmddTHHMMSS.NNNNNNNNN
scriptURL="https://gitlab.com/baltakatei/ninfacyzga-01"; # Define website hosting this script.
scriptTimeStartEpoch="$(date +%s)"; # Save start time of script in epoch seconds
scriptTimeStart="$(date +%Y%m%dT%H%M%S.%N)"; # YYYYmmddTHHMMSS.NNNNNNNNN
while read -r -t "$bufferTTL" line && [[ $SECONDS -lt "$bufferTOD" ]]; do
# Append line to buffer array
buffer+=("$line");
while read -r -t "$bufferTTL" line && [[ $SECONDS -lt "$bufferTOD" ]]; do
# Append line to buffer array
buffer+=("$line");
+ done < /dev/stdin;
+ # End script if buffer array empty (ex: EOF found in stdin)
+ if [[ ${#buffer[@]} -eq 0 ]]; then
+ yell "ERROR:$fn:Empty array:buffer:${buffer[@]}"; exit 1;
+ fi;
# Mark time for buffer
## Initial time
if [[ bufferRound -gt 0 ]]; then
# Mark time for buffer
## Initial time
if [[ bufferRound -gt 0 ]]; then