[augeas-devel] [PATCH] Shellvars: handle space at the end of a line

Raphaël Pinson raphink at gmail.com
Fri Sep 5 16:01:48 UTC 2008


On Fri, Sep 5, 2008 at 5:58 PM, David Lutterkort <lutter at redhat.com> wrote:

> 2 files changed, 3 insertions(+), 1 deletion(-)
> lenses/shellvars.aug            |    2 +-
> lenses/tests/test_shellvars.aug |    2 ++
>
>
> # HG changeset patch
> # User David Lutterkort <dlutter at redhat.com>
> # Date 1220630335 25200
> # Node ID 2079ee4ab3bab3d3e53ad1b62d0e85c785e1dc3e
> # Parent  76b4a5665cd6a32cc46131091c2860176b864033
> Shellvars: handle space at the end of a line
>
> diff -r 76b4a5665cd6 -r 2079ee4ab3ba lenses/shellvars.aug
> --- a/lenses/shellvars.aug      Thu Sep 04 16:11:35 2008 -0700
> +++ b/lenses/shellvars.aug      Fri Sep 05 08:58:55 2008 -0700
> @@ -2,7 +2,7 @@
>  (* in /etc/sysconfig                                              *)
>  module Shellvars =
>
> -  let eol = Util.del_str "\n"
> +  let eol = del /[ \t]*\n/ "\n"



which is Util.eol (
http://r.pinson.free.fr/augeas/doc/files/util-aug.html#Util.eol)


Raphael, having fun with online doc :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20080905/bff9f417/attachment.htm>


More information about the augeas-devel mailing list