I just noticed that no matter which
cryptsetup FDs are forwarded to
/dev/null it still shows prompt for password. For example this still shows prompt:
cryptsetyp luksOpen /dev/sdXY name >/dev/null 2>/dev/null
How can you display in terminal message that cannot be redirected to file using standard redirection?
I'd like to get such functionality in bash script as I use stdout to return result to mother script but I'd still like to display interactive prompt - is it possible to do so using bash?