[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#4269) ldapsearch no LDIF wrap option



> The Netscape version could optionally turn off LDIF wrap.  Handy for
> scripting
> and pipes etc.  I'm surprised no one has ever done this before. Is there a
> religious movement against it?

It's so trivial to workout otherwise that it does not deserve the coding
effort.

>
> Diffs attached for ldapsearch -r (turn off line wrap)

I suggest making the -r switch accept an optional arg that specifies the
wrap column, defaulting to LDIF_LINE_WIDTH; so

(nothing) means wrap at column LDIF_LINE_WIDTH

-r alone means don't wrap at all

-r <positive integer> means wrap at given column

This should be submitted as a patch to HEAD (or at least re23) code.

p.



Ing. Pierangelo Masarati
Responsabile Open Solution
OpenLDAP Core Team

SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
------------------------------------------
Office:   +39.02.23998309          
Mobile:   +39.333.4963172
Email:    pierangelo.masarati@sys-net.it
------------------------------------------