Closed falkenhawk closed 1 year ago
@marcinlee suggested that [[ $- == *i* ]] && stty size
could be used instead - to avoid calling stty
at all when shell is not interactive. Might be cleaner than to discarding stderr. 🤔
@falkenhawk both are fine, IMHO discarding stderr
is easier to understand though the condition looks like a more appropriate approach
using
zend-progressbar
withConsole
adapter spamsstty: 'standard input': Inappropriate ioctl for device
on non-interactive shell (e.g. tests on CI)Never fixed in original zf v2 / laminas: https://github.com/zendframework/zend-progressbar/issues/23 https://github.com/laminas/laminas-progressbar/issues/2