Michael Veksler wrote: > > eric <[EMAIL PROTECTED]> wrote: > > both are not work on bash but work on csh on my mandrake 8.0, I also > > webmail them (mandrakesoft) on tech support, but they said it in not in > > the scope they want to support. > > I did not follow the thread up until now, so I may be off base here. > > Do your prompts in csh and in bash have "\r" at their beginning? > If they do, then your little program works well, but your shell > erases it (I think it is the default behavior of zsh). > Do the following experiment: > csh% printf "test" ; sleep 1 > or > bash$ printf "test" ; sleep 1 > > Does "test" appear on your screen for one second and then goes away? > Dear Michael:
at bash it stay one second then disappear at csh it keep there. for me I just like csh's style. Is that fixed rule of bash to swallow out the printf without \n at the end of string? I just worried the program written and compiled at other platform(redhat7.1, debian-progeny1.0 then stay there, but I did not notice it is bash or not-its default one) not compatible my mandrake8.0. That is if it is not fixed rule, can I change my bash as csh's custom? sincere eric, [EMAIL PROTECTED] > Michael > > Stephano Mariani wrote: > > > > Here is what I mean: > > > > #include <stdio.h> > > > > int main(int argc,char*const*argv) > > { > > printf("Hello World"); /* No linefeed */ > > fflush(stdout); /* Likewise for any other stream(s) you use */ > > _exit(0); > > } > >
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com