aboutsummaryrefslogtreecommitdiffstats
path: root/main/augeas/0005-Shellvars-guard-against-comments.patch
blob: b2f4114386b2bbcf4914f21c23ce93cb06fadcb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From e86155aec47840e7cce29a6dbaac5bd21f8d9e3a Mon Sep 17 00:00:00 2001
From: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
Date: Mon, 8 Dec 2014 12:43:51 +0200
Subject: [PATCH 05/15] Shellvars: guard against comments

---
 lenses/shellvars.aug | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lenses/shellvars.aug b/lenses/shellvars.aug
index c767067..78b1d16 100644
--- a/lenses/shellvars.aug
+++ b/lenses/shellvars.aug
@@ -34,7 +34,7 @@ module Shellvars =
   let xchgs   = Build.xchgs
   let semicol = del /;?/ ""
 
-  let char  = /[^`;() '"\t\n\\]|\\\\(.|\n)/
+  let char  = /[^`;()'"\n\\# \t]#*|\\\\(.|\n)/
   let dquot =
        let char = /[^"\\]|\\\\./ | Rx.cl
     in "\"" . char* . "\""                    (* " Emacs, relax *)
-- 
2.1.0