bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pb with grep


From: Paul Eggert
Subject: Re: pb with grep
Date: Thu, 26 Sep 2002 10:06:37 -0700 (PDT)

> From: "Salah ABOUFARID" <address@hidden>
> Date: Thu, 26 Sep 2002 14:41:31 +0200
> 
> I just install gnv in a VMS machine 7.2 . 
> When I use grep and I redirect the output in a file,
> the file created is bad. There are only one column. 
> 
> command:
> grep 'opsp' login.com > res.txt
> cat res.txt
> 
> result:
> o
> p 
> ...

> How to resolve this problem. It is a bug ?

Yes, it's probably a portability bug in the way that grep outputs
lines.  If memory serves, VMS has a nonstandard interpretation of how
'fwrite' behaves; it sometimes insert newlines or record boundaries.
Perhaps you can ask a local VMS expert about that.  I believe that
grep does use fwrite; that would explain your problem.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]