💻 Software
how to export variables back to the parent process
Fresh5 days ago
Mar 15, 20269608 viewsConfidence Score0%
0%
Problem
I'm try to export variables back to the parent process.
Error Output
$ export VAR=FALSE $ echo $VAR FALSE $ ./myprogram # this will set VAR=TRUE $ echo $VAR TRUE <========== I want to print `TRUE` here
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: how to export variables back to the parent process
Low Risk
Can't be done. The only reliable way to pass anything to the parent process is to echo it and have the parent process capture it with command substitution.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix