summaryrefslogtreecommitdiffstats
path: root/bin/erancid.in
diff options
context:
space:
mode:
Diffstat (limited to 'bin/erancid.in')
-rwxr-xr-xbin/erancid.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/erancid.in b/bin/erancid.in
index 185a634..1106018 100755
--- a/bin/erancid.in
+++ b/bin/erancid.in
@@ -237,6 +237,7 @@ if ($file) {
}
}
+ProcessHistory("","","","- RANCID-CONTENT-TYPE: ezt3\n-\n");
ProcessHistory("COMMENTS","keysort","B0","-\n");
ProcessHistory("COMMENTS","keysort","F0","-\n");
ProcessHistory("COMMENTS","keysort","G0","-\n");
@@ -255,7 +256,10 @@ while(<INPUT>) {
}
while (/Active\) >\s*($cmds_regexp)\s*$/) {
$cmd = $1;
- if (!defined($prompt)) {$prompt = ($_ =~ /^([^#]+#)/)[0]; }
+ if (!defined($prompt)) {
+ $prompt = ($_ =~ /^([^#]+#)/)[0];
+ $prompt =~ s/([}{)(\\])/\\$1/g;
+ }
print STDERR ("HIT COMMAND:$_") if ($debug);
if (! defined($commands{$cmd})) {
print STDERR "found unexpected command - \"$cmd\"\n";