<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div style="font-family:Arial;">Minor correction: either one of -e and -m would work, but in most non-interactive cases, -m is what you want.<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">I agree that it makes sense to prompt the user for a repeat only if [[ -t 0 ]], but then it raises the question of bug-for-bug backwards compatibility (i.e. if existing scripts in the wild have come to expect the second prompt). So, in the patch, maybe just issue a warning when [[ ! -t 0 ]] but proceed as usual.<br></div><div style="font-family:Arial;"><br></div></body></html>