Project

General

Profile

Actions

Architecture #8464

closed

Make environment variables parse easier

Added by Janos Mattyasovszky over 8 years ago. Updated about 8 years ago.

Status:
Released
Priority:
N/A
Category:
System techniques
Target version:
Effort required:
Name check:
Fix check:
Regression:

Description

Hi,

Regarding #7772 which was introduced by #7094, would it make sense to replace that env -0 or sed-magic to get the env. keys with something simpler, like this?

awk 'BEGIN { for (k in ENVIRON) { print k }; }'

The question is only, if awk is available on all systems that rudder-agent is supposed to work on (since you have rudder agent run's output piped through a pretty complex awk script, I presume "yes"?)


Related issues 2 (0 open2 closed)

Related to Rudder - Bug #7772: Agent processes parts of the environment (multiline bash variables) on systems without "env --null" supportReleasedBenoît PECCATTE2016-01-14Actions
Related to Rudder - Bug #7094: Agent processes parts of the environment (multiline bash variables)ReleasedNicolas CHARLESActions
Actions

Also available in: Atom PDF