File e3101393-allow-partial-quoting-mixing-multiple-styl.patch of Package augeas.2416

From e3101393f04f1d58934f3fa6fe569d13e339f4f4 Mon Sep 17 00:00:00 2001
From: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
Date: Thu, 4 Dec 2014 14:31:26 +0200
Subject: [PATCH] Shellvars: allow partial quoting, mixing multiple styles

Note: only the part fixing escaped character parsing has been backported

---
 lenses/shellvars.aug            | 8 ++++----
 lenses/tests/test_shellvars.aug | 4 ++++
 2 files changed, 8 insertions(+), 4 deletions(-)

Index: augeas-1.2.0/lenses/shellvars.aug
===================================================================
--- augeas-1.2.0.orig/lenses/shellvars.aug
+++ augeas-1.2.0/lenses/shellvars.aug
@@ -31,7 +31,7 @@ module Shellvars =
   let xchgs   = Build.xchgs
   let semicol = del /;?/ ""
 
-  let char  = /[^`;() '"\t\n]|\\\\"/
+  let char  = /[^`;() '"\t\n\\]|\\\\./
   let dquot = 
        let char = /[^"\\]|\\\\./ | Rx.cl
     in "\"" . char* . "\""                    (* " Emacs, relax *)
openSUSE Build Service is sponsored by