X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=hivex%2Fhivexsh.c;h=847954cdecc6033900140469aff45ffd659e9bc2;hb=4d71ca54291fedf5fb83370150fc5eb697950667;hp=d7d00bb0925c143203fa74ab18b2f2d2b7e0a3d5;hpb=e3be2251693b305daa566dce5a23aba61a699afc;p=hivex.git diff --git a/hivex/hivexsh.c b/hivex/hivexsh.c index d7d00bb..847954c 100644 --- a/hivex/hivexsh.c +++ b/hivex/hivexsh.c @@ -146,7 +146,8 @@ main (int argc, char *argv[]) char *buf = rl_gets (prompt_string); if (!buf) { quit = 1; - printf ("\n"); + if (is_tty) + printf ("\n"); break; }