Conversation

bwaaaa why do i need to use glibc or #define _GNU_SOURCE for accessing env vars via char** environ

1
0
0

@thing why not just getenv? (or forking then systeming env and reading from stdout)

1
0
0

@thing btw have you used fork in the past?

1
0
0

@thing i dont know, but if you want to set environment variables for subprocesses there are the exec[somethingsomething]e calls

1
0
0

@thing sadly i dont think it is possible to change environment variables for the parent process

0
0
0
@thing @kemona_halftau yes but beware that setenv is not thread-safe
1
0
1

@noisytoot @kemona_halftau well idrc
i’m just writing a tiny wrapper program

0
0
0