Timeline for Set shell variable then invoke subprocess fails
Current License: CC BY-SA 4.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 4, 2019 at 0:22 | comment | added | cycollins | Yeah, I adopted Gordon Davisson's approach. But half of my experiments would have worked had it not been for the quirk that OPTERR (unlike the state of other special variables) is not inherited by a sub shell, but rather re-initialized to 1 when the sub-shell is initialized. Or maybe that's the distinction between a special variable like this and an environment variable. The former get initialized to defaults and the latter get inherited. | |
| Jul 3, 2019 at 17:51 | history | answered | Jeff Schaller♦ | CC BY-SA 4.0 |