Timeline for How to set an environment variable with another variable before calling a sub-process?
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 3, 2022 at 16:17 | vote | accept | Panda | ||
| Feb 3, 2022 at 15:45 | comment | added | Stéphane Chazelas |
That's like eval, but has the code run by a new separate invocation of the bash interpreter instead of the current one. So it's about as dangerous and less efficient.
|
|
| Feb 3, 2022 at 15:39 | comment | added | Panda |
I've found using bash -c "$blah ./foo-proj" works too. Is this equivalent to eval?
|
|
| Feb 2, 2022 at 17:12 | history | answered | Stéphane Chazelas | CC BY-SA 4.0 |