[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[6533] \ to / for perl conf values
From: |
Gavin D. Smith |
Subject: |
[6533] \ to / for perl conf values |
Date: |
Sun, 16 Aug 2015 17:44:04 +0000 |
Revision: 6533
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6533
Author: gavin
Date: 2015-08-16 17:44:04 +0000 (Sun, 16 Aug 2015)
Log Message:
-----------
\ to / for perl conf values
Modified Paths:
--------------
trunk/ChangeLog
trunk/tp/Texinfo/Convert/XSParagraph/configure.ac
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2015-08-16 17:36:39 UTC (rev 6532)
+++ trunk/ChangeLog 2015-08-16 17:44:04 UTC (rev 6533)
@@ -1,5 +1,10 @@
2015-08-15 Gavin Smith <address@hidden>
+ * tp/Texinfo/Convert/XSParagraph/configure.ac: Convert backward
+ slashes to forward slashes in Perl's configuration values.
+
+2015-08-15 Gavin Smith <address@hidden>
+
* tp/Texinfo/Parser.pm (_parse_texi) <macro expansion>: If macro
expansion is empty, don't add to macro expansion stack. Problem
with empty macro body, leading to error about recursive macro
Modified: trunk/tp/Texinfo/Convert/XSParagraph/configure.ac
===================================================================
--- trunk/tp/Texinfo/Convert/XSParagraph/configure.ac 2015-08-16 17:36:39 UTC
(rev 6532)
+++ trunk/tp/Texinfo/Convert/XSParagraph/configure.ac 2015-08-16 17:44:04 UTC
(rev 6533)
@@ -7,17 +7,14 @@
conf_value=`${PERL} -V:$1`
echo got "$conf_value"
# This turns a string like "cc='cc';" into a string like "cc".
- # We also turn \" into ", \' into ' and \\ into \. There may
- # be other \ sequences we want to process as well. This is
- # the escape sequence for single-quoted strings in Perl.
+ # Afterwards, convert \ into / in case \ is a path separator,
+ # so it is not interpreted as a special character by the shell.
conf_value=`echo $conf_value \
| sed -e 's/^@<:@^=@:>@*= *//' \
-e 's/^'\\''//' \
-e 's/ *; *$//' \
-e 's/'\\''$//' \
- -e 's/\\\\"/"/g' \
- -e 's/\\\\'\\''/\\'\\''/g' \
- -e 's/\\\\\\\\/\\\\/g' `
+ -e 's/\\\\/\\//g' `
echo got "$conf_value"
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [6533] \ to / for perl conf values,
Gavin D. Smith <=