Project

General

Profile

Actions

Bug #20128

closed

Variable string from command fails when command contains control structures

Added by Alexis Mousset about 3 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Category:
Generic methods
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
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É about 3 years ago

  • Target version changed from 6.2.11 to 6.2.12
Actions #2

Updated by Vincent MEMBRÉ almost 3 years ago

  • Target version changed from 6.2.12 to 6.2.13
Actions #3

Updated by Elaad FURREEDAN almost 3 years ago

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

Updated by Nicolas CHARLES over 2 years ago

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

Updated by Nicolas CHARLES over 2 years 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 over 2 years ago

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

Updated by Nicolas CHARLES over 2 years ago

  • Fix check changed from To do to Checked
Actions #9

Updated by Vincent MEMBRÉ over 2 years 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É over 2 years ago

  • Status changed from Pending release to Released
Actions

Also available in: Atom PDF