> On Fri, 27 Apr 2001, Shaul Karl wrote:
> 
> > > it seems that the Mandrake 8 default shell - bash 2.04.18 -  sends a
> > > carriage return before printing it's prompt - overwriting everything
> > > written on the same line, as this revised code shows:
> <snip>
> > >
> > > simply annoying.
> > > I was wandering if I should report this as a bug, and if so - to how ?
> > > Mandrake ?
> > >
> >
> > I am not sure about who isn't behaving properly, if any:
> <snip><snip>
> looks ok, I understand you use bash 2.05, so I downloaded the MDK source
> RPM and rebuilt it - doesn't solve this problem. what distro are you
> using, and what do you think the problem is ?
> 
> > [17:02:49 tmp]$ diff -c bug1.c bug.c
> <snip>
> Didn't understand that part at all - what are you trying to say ?
> 
> Oded
> 
> 


I am Using Debian.
My main point was that as far as my C knowledge is, your program is not well 
defined. The compiler is warning you about it:

[14:23:14 tmp]$ cc -Wall bug.c -o bug.c
bug.c: In function `main':
bug.c:8: warning: implicit declaration of function `write'
[14:23:33 tmp]$ 

Therefore, you can not claim that it is not correct. My suggestion on how to 
make it well defined is to #include <unistd.h>. I have done this in my bug1.c 
program and this has removed the compiler warning.
-- 
        
        Shaul Karl <[EMAIL PROTECTED]>



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to