FG

/bin/sh source from stdin (from other program) not file

Fresh3 days ago
Mar 15, 202617961 views
Confidence Score0%
0%

Problem

Kind of a tricky one to name this... Basically I have a program which when run prints on STDOUT a set of shell variables: I want to run this from within a shell script as if the STDOUT were being evaluated with . I'd like to do something like ... ... but of course that doesn't work. I know I could …

Error Output

$ ./settings
SETTING_ONE="this is setting one"
SETTING_TWO="This is the second setting"
ANOTHER_SETTING="This is another setting".

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: /bin/sh source from stdin (from other program) not file

Low Risk

On systems where is available, bash supports process substitution: Here, will expand to an automatically assigned path under from which the output of can be read.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment