haha, this got me for a bit also!  =)  its not that its not printing, its
that it is printing, but then the prompt is printing over it.

[my bash prompt here]
hello

impose the top line over the bottom line and it complete covers it up.  but
try this...

[my bash prompt here]
hello, this is a test...it demonstrates that i'm actually being printed.

if you print that line out with no newline it will print the following (i
think):
[my bash prompt here]emonstrates that i'm actually being printed.

i'm sorry, i'm drunk and am having a hard time explaining this...

-- christopher

P.S.  merry xmas

----- Original Message -----
From: "Andrew Hadinyoto" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 23, 2002 9:39 AM
Subject: Terminal 'newline' problem with Redhat 8.0


> I've seen a posting about this or something similar but I haven't seen
> the answer for it yet
> (sorry if I am wrong).
>
> I am running RH8.0 and I noticed that X-based console (Konsole, Gnome
> console, xterm)
> ignores a "print" without end-of-line.
>
> For example, I've tried:
> in bash: echo -n "hello"
> in perl: perl -e 'print "hello";'
> in C: printf("hello");  // in simple main function
>
> All prints nothing. Just returns the prompt. They are all the same for
> Konsole, Gnome
> console and xterm.
>
> However, if I tried to do the same in text-based console (runlevel 3),
> it prints correctly
> (without newline). This is supposed to be the expected behavior. I tried
> it on Redhat 7.2
> and it does not have this "problem" (or "feature").
>
> Printing with newline at the end of the string is fine, though.
>
> There must be some config or switch to disable this behavior. But I
> couldn't find it.
>
> Can somebody please help? Thanks in advance.
>
> Andrew Hadinyoto
>
>
>
>
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to