We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d1e623 commit 0b172d1Copy full SHA for 0b172d1
CHANGES.pod
@@ -35,6 +35,10 @@ A reverse-chronological ordered list of changes
35
36
Removed POSIX::tempnam() deprecation warning.
37
38
+=item *
39
+
40
+Fixed over-escaping problem. "\\\\" now evaluates as "\\" instead of "\".
41
42
=back
43
44
lib/Psh/Parser.pm
@@ -264,7 +264,19 @@ sub remove_backslash {
264
$text=~ s/\\e/\e/g;
265
$text=~ s/\\(0[0-7][0-7])/chr(oct($1))/ge;
266
$text=~ s/\\(x[0-9a-fA-F][0-9a-fA-F])/chr(oct($1))/ge;
267
- $text=~ s/\\(.)/$1/g;
+ #
268
+ #$text=~ s/\\(.)/$1/g;
269
270
+ # this breaks constructs like:
271
+ # > print "\\\\\n"
272
+ # \
273
+ # >
274
+ # should be:
275
276
+ # \\
277
278
279
280
return $text;
281
}
282
0 commit comments