RTEMS | shell/cat_file:Fix cat not outputting file with no newline at end (!219)

shuhua hua (@huangshuhua) gitlab at rtems.org
Fri Sep 20 01:01:31 UTC 2024




shuhua hua commented on a discussion on cpukit/libmisc/shell/cat_file.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/219#note_112308

 >      }
 >      while ((c=fgetc(fd))!=EOF)
 >        fputc(c,out);
 > +    fputc('\n', out);

 I have tried using fflush, but it still couldn't output the data. Is it effective when you add fflush on your side?

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/219#note_112308
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240920/e89a8f3f/attachment-0001.htm>


More information about the bugs mailing list