I am using x86_64 GNU/Linux with bash#include <stdio.h>#include <stdlib.h>int main(int argc, char **argv){    system(set > setc);                           // A subset of `$ set`    return 0;}I can see the file setc contains a subset of $ set.I am feeling curious as to know how the shell (parent process) decides what to supply to child process and what not to?What if I want to supply more environ variables to child process? How one can control that?
Controlling the environ passed to child process by bash
bash;process;environment variables