Alexander Skwar <[EMAIL PROTECTED]> writes:

> So sprach Guillaume Cottenceau am Sat, Jun 23, 2001 at 12:28:36AM +0200:
> > It's not newline terminated... so what?
> 
> Uhm, shouldn't cat display every file out there?  I thought that cat is also
> able to handle binary files with no problems, but I can see that this may
> break if this bug isn't fixed.

Uh... you're different...

Basically, 'cat' takes its STDIN and copies it to STDOUT.


> > [gc@obiwan ~] cat plop 
> > [gc@obiwan ~] cat plop ; echo 
> > 33018,ntUd5@dEDeBKtly{
> 
> Ah!  So the prompt simply overwrites the output because the file isn't
> newline terminated?

Yeaaaaaaah! you got it!!! :-))

[gc@obiwan ~] printf 'plop'
[gc@obiwan ~] printf 'plop\n'
plop
[gc@obiwan ~] printf 'plop\n\n'
plop

[gc@obiwan ~]



-- 
Guillaume Cottenceau - http://mandrakesoft.com/~gc/

Reply via email to