On 20:17 02 Dec 2002, Ade Olonoh <olonoh@yahoo.com> wrote: | I ran into some odd behavior which if I remember right I didn't see | before RH8. From an X terminal like xterm, konsole, or gnome-terminal, | if I use a command that prints text w/out a newline I won't see the | resulting text. The following do not work: | | > echo -n "test" | > perl -e 'print "test"' | | But if there's a newline printed it works: | | > echo "test" | > echo -n "test"; echo | > perl -e 'print "test\n"' | | The odd thing is that if I get out of X and do this from a virtual | console I don't see the problem. Also, if I su like such: | | > su -l $USER | | and try it I don't see the problem either. I'm pretty befuddled by | this--can anyone provide some ideas on a fix? Hmm. You're sure the (Redhat default) bash shell prompt isn't eating things. As I recall it commences with a carriage return, which neatly makes the prompt mangle your un-newlined string. Really rude in my opinion. Try setting PS1 to something really simple like this: export PS1='> ' and see if the apparent behaviour changes. Cheers, -- Cameron Simpson, DoD#743 cs@zip.com.au http://www.zip.com.au/~cs/ Why do we want to mimic human intelligence? What possible use is a computer that gets bored, gets horny, who doesn't feel like working right now, and who doesn't know what to do with Sunday afternoon? - Tim Menzies <timm@cse.unsw.edu.au> -- Psyche-list mailing list Psyche-list@redhat.com https://listman.redhat.com/mailman/listinfo/psyche-list