[arch-projects] [devtools] [PATCH 2/2] commitpkg: Adjust fancy quoting/escaping to not confuse Emacs.
Luke Shumaker
lukeshu at parabola.nu
Tue Mar 28 19:41:33 UTC 2017
It was confusing Emacs and screwing up the syntax highlighting and
auto-indentation for the rest of the file.
---
commitpkg.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commitpkg.in b/commitpkg.in
index 3b3246b..707a81c 100644
--- a/commitpkg.in
+++ b/commitpkg.in
@@ -47,7 +47,7 @@ done
for i in 'changelog' 'install'; do
while read -r file; do
# evaluate any bash variables used
- eval file=\"$(sed 's/^\(['\''"]\)\(.*\)\1$/\2/' <<< "$file")\"
+ eval file=\"$(sed "s/^\(['\"]\)\(.*\)\1\$/\2/" <<< "$file")\"
needsversioning+=("$file")
done < <(sed -n "s/^[[:space:]]*$i=//p" PKGBUILD)
done
--
2.12.0
More information about the arch-projects
mailing list