On Fri, 15 Nov 2002, Marc Murphy wrote: >Date: Fri, 15 Nov 2002 03:08:30 -0500 >From: Marc Murphy <mwmurphy@rogers.com> >To: psyche-list@redhat.com >Content-Type: text/plain; charset=us-ascii; format=flowed >List-Id: Discussion of Red Hat Linux 8.0 (Psyche) <psyche-list.redhat.com> >Subject: bash and perl output of 'hello' with no \n doesn't work > >Has anyone else encountered this problem with a fresh install? > >#!/usr/bin/perl >print 'hello'; > >Does not print, but if I redirect the output to a file using, it does. > It also will print if I use the \n character. When I use csh the >newline character is not needed. Can anyone tell me what is going on? This isn't a bug. You're not generating a final '\n' character, and as such, when the program exits, and bash goes to display the prompt, it overwrites the 'hello' thus showing nothing. You should ensure that any buffers are flushed properly before your program exits. -- Mike A. Harris ftp://people.redhat.com/mharris OS Systems Engineer XFree86 maintainer Red Hat Inc. -- Psyche-list mailing list Psyche-list@redhat.com https://listman.redhat.com/mailman/listinfo/psyche-list