]> git.ipfire.org Git - thirdparty/util-linux.git/commit - misc-utils/rename.c
rename: ask(): call __fpurge() to cater for multi-byte characters
authorG.raud Meyer <graud@gmx.com>
Tue, 5 Apr 2011 09:31:03 +0000 (11:31 +0200)
committerG.raud Meyer <graud@gmx.com>
Mon, 9 Apr 2018 15:21:17 +0000 (17:21 +0200)
commit33785dd33ceaa61386d3aa29d3cd550315e05edc
tree503a8f177a244ccdc12b2dbb8878d7c1344ff38e
parent16740b0c7aa947fd43c227cb57af7dc12647173c
rename: ask(): call __fpurge() to cater for multi-byte characters

Making a purge in cbreak mode also makes the code compatible with
canonical mode.  This can be useful in the case a shell, like bash, does
not restore the tty state of stopped jobs before restarting them.  An
alternative fix to this minor shortcoming would be to retest the tty
state each time inside ask().
misc-utils/rename.c