bash environment in cpp