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 1 year ago. Updated over 1 year 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 over 1 year 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 over 1 year ago

  • Bugzilla link set to 2127940
Actions #3

Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases 3.5.0 added
Actions #4

Updated by Adam Ruzicka over 1 year ago

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

Updated by The Foreman Bot over 1 year ago

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

Updated by The Foreman Bot over 1 year ago

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

Updated by Ewoud Kohl van Wijngaarden over 1 year ago

  • Triaged changed from No to Yes
Actions #8

Updated by Ewoud Kohl van Wijngaarden over 1 year 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 over 1 year ago

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

Also available in: Atom PDF