[PATCH] kdumpctl: fix infinite loop caused by running under bash