Project

General

Profile

Actions

Bug #20128

closed

Variable string from command fails when command contains control structures

Added by Alexis Mousset 12 months ago. Updated 4 months ago.

Status:
Released
Priority:
N/A
Category:
Generic methods
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Regression:

Description

When the command contains control structures it fails:

E| compliant     plouf                     Variable string from com| test2              Set the string plouff.test2 to the output of 'if [ true ]; then echo plop1 && echo foo 1>&2; else echo plop2; fi;' was correct
2021-10-14T08:42:14+00:00 R: The 'if [ true ]; then echo plop1 && echo foo 1>&2; else echo plop2; fi;' command returned ' command substitution: line 2: syntax error near unexpected token `then'
2021-10-14T08:42:14+00:00 sh: command substitution: line 2: `/bin/true; 2>/dev/null if [ true ]; then echo plop1 && echo foo 1>&2; else echo plop2; fi;''

Subtasks 1 (0 open1 closed)

Bug #20921: Adapt parent ticket for 7.0ReleasedAlexis MoussetActions
Actions #1

Updated by Vincent MEMBRÉ 11 months ago

  • Target version changed from 6.2.11 to 6.2.12
Actions #2

Updated by Vincent MEMBRÉ 10 months ago

  • Target version changed from 6.2.12 to 6.2.13
Actions #3

Updated by Elaad FURREEDAN 10 months ago

  • translation missing: en.field_tag_list set to Sponsored
Actions #5

Updated by Nicolas CHARLES 7 months ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES
Actions #6

Updated by Nicolas CHARLES 7 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to Alexis Mousset
  • Pull Request set to https://github.com/Normation/ncf/pull/1343
Actions #7

Updated by Anonymous 7 months ago

  • Status changed from Pending technical review to Pending release
Actions #9

Updated by Vincent MEMBRÉ 6 months ago

This bug has been fixed in Rudder 6.2.13, 7.0.2 and 7.1.0~rc1 which were released today.

Actions #10

Updated by Vincent MEMBRÉ 5 months ago

  • Status changed from Pending release to Released
Actions

Also available in: Atom PDF