diff options
author | Sami Kerola | 2017-06-24 12:48:08 +0200 |
---|---|---|
committer | Karel Zak | 2017-06-26 15:23:31 +0200 |
commit | 8198052c9e8ee685c9405fae5f37e2a9e7572c0f (patch) | |
tree | 1f243f95f7d3709d9142b6e44dac3e4a603fbf90 /tests/expected/sfdisk/gpt-write-json | |
parent | uuidparse: add new command (diff) | |
download | kernel-qcow2-util-linux-8198052c9e8ee685c9405fae5f37e2a9e7572c0f.tar.gz kernel-qcow2-util-linux-8198052c9e8ee685c9405fae5f37e2a9e7572c0f.tar.xz kernel-qcow2-util-linux-8198052c9e8ee685c9405fae5f37e2a9e7572c0f.zip |
script: ensure typescript and timing errors do not break terminal
Earlier when typescript file failed new line after the error did not cause
carriage return. Here is an example how prompt> travels to wrong place:
prompt> script 0500-perms/typescript
Script started, file is 0500-perms/typescript
script: cannot open 0500-perms/typescript: Permission denied
prompt>
But that wasn't quite as bad as what happen with timing file, that at
failure left terminal to state where a reset(1) run was needed.
[kzak@redhat.com: - move code to restore_tty()]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/expected/sfdisk/gpt-write-json')
0 files changed, 0 insertions, 0 deletions