Project

General

Profile

Actions

Bug #35530

closed

save_to_file macro does not work if the thing being saved contains a heredoc terminated with EOF

Added by Adam Ruzicka over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Templates
Target version:
-
Fixed in Releases:
Found in Releases:

Description

save_to_file does

cat <<EOF >$file
$content
EOF

but if `$content` contains a heredoc terminated with `EOF`, it terminates the heredoc that save_to_file creates.


Related issues 2 (0 open2 closed)

Related to Foreman - Bug #35814: save_to_file does not work as expected when a shell variable needs to be part of the saved file nameClosedActions
Related to Foreman - Bug #35792: save_to_file function should not use shellescape on the filenameClosedSayan DasActions
Actions

Also available in: Atom PDF