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.
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.
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/9426 added
- Bugzilla link set to 2127940
- Fixed in Releases 3.5.0 added
- Status changed from Ready For Testing to Closed
- Pull request https://github.com/theforeman/foreman/pull/9436 added
- Pull request https://github.com/theforeman/foreman/pull/9523 added
- Triaged changed from No to Yes
- Related to Bug #35814: save_to_file does not work as expected when a shell variable needs to be part of the saved file name added
- Related to Bug #35792: save_to_file function should not use shellescape on the filename added
Also available in: Atom
PDF