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 about 2 years ago. Updated almost 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 #1

Updated by The Foreman Bot about 2 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/9426 added
Actions #2

Updated by Peter Ondrejka about 2 years ago

  • Bugzilla link set to 2127940
Actions #3

Updated by The Foreman Bot about 2 years ago

  • Fixed in Releases 3.5.0 added
Actions #4

Updated by Adam Ruzicka about 2 years ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by The Foreman Bot about 2 years ago

  • Pull request https://github.com/theforeman/foreman/pull/9436 added
Actions #6

Updated by The Foreman Bot almost 2 years ago

  • Pull request https://github.com/theforeman/foreman/pull/9523 added
Actions #7

Updated by Ewoud Kohl van Wijngaarden almost 2 years ago

  • Triaged changed from No to Yes
Actions #8

Updated by Ewoud Kohl van Wijngaarden almost 2 years ago

  • 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
Actions #9

Updated by Ewoud Kohl van Wijngaarden almost 2 years ago

  • Related to Bug #35792: save_to_file function should not use shellescape on the filename added
Actions

Also available in: Atom PDF