]> ToastFreeware Gitweb - gregoa/bti.git/commitdiff
bti: suppress prompt if fed from a pipe
authorPete Zaitcev <zaitcev@redhat.com>
Sun, 21 Mar 2010 20:46:03 +0000 (14:46 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 22 Mar 2010 20:04:51 +0000 (13:04 -0700)
Do not use readline for non-interactive sessions (e.g. those taking
input from a pipe or file). This way stray prompts are not shown.
Explicit prompts are retained, in case some script expects them.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found