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

David Lutterkort lutter at redhat.com
Fri Sep 5 17:03:04 UTC 2008


On Fri, 2008-09-05 at 18:01 +0200, Raphaël Pinson wrote:
> 
> 
> 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)

Ugh .. fixed now

David






More information about the augeas-devel mailing list