[Top][All Lists]
[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.
- pb with grep, Salah ABOUFARID, 2002/09/26
- Re: pb with grep,
Paul Eggert <=