diff options
Diffstat (limited to 'main/augeas/0003-Shellvars-guard-against-comments.patch')
-rw-r--r-- | main/augeas/0003-Shellvars-guard-against-comments.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/main/augeas/0003-Shellvars-guard-against-comments.patch b/main/augeas/0003-Shellvars-guard-against-comments.patch new file mode 100644 index 0000000000..720ac5bd10 --- /dev/null +++ b/main/augeas/0003-Shellvars-guard-against-comments.patch @@ -0,0 +1,25 @@ +From f12488a278364a5a743faf2369766fee54db123c 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 03/10] 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 40a527f..ae2ec90 100644 +--- a/lenses/shellvars.aug ++++ b/lenses/shellvars.aug +@@ -31,7 +31,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 *) +-- +1.8.3.1 + |