Project

General

Profile

Bug #11849

Multi-line input containting \r\n causes issues when using inside the ssh scripts

Added by Ivan Necas about 6 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

1. run command action
2. use multiline command as the input
3. the lines in the input are separated by '\r\n'

This leads to `$'\r': command not found` when running the command.

The solution is to sanitize the script before running it to remove the '\r'
characters.

Associated revisions

Revision 1a2941c1 (diff)
Added by Ivan Necas about 6 years ago

Fixes #11849 - sanitize script to handle carriage returns properly

Revision 741ec862
Added by Ivan Necas about 6 years ago

Merge pull request #8 from iNecas/handle-carriage-returns

Fixes #11849 - sanitize script to handle carriage returns properly

History

#1 Updated by The Foreman Bot about 6 years ago

  • Status changed from Assigned to Ready For Testing
  • Target version set to 85
  • Pull request https://github.com/theforeman/smart_proxy_remote_execution_ssh/pull/8 added
  • Pull request deleted ()

#2 Updated by Ivan Necas about 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Ivan Necas about 6 years ago

  • Legacy Backlogs Release (now unused) set to 85

Also available in: Atom PDF