42sh 1.0.0
Create a shell in C
Loading...
Searching...
No Matches
env.c File Reference

The file containing the env builtin. More...

Functions

int exec_env (mysh_t *mysh)
 The env builtin.
 

Detailed Description

The file containing the env builtin.

Function Documentation

◆ exec_env()

int exec_env ( mysh_t * mysh)

The env builtin.

Note
If there is no argument, it will display the environment, else it will execute the command with the environment
Parameters
myshThe shell structure
Returns
int 0 if the command succeed, return the exit value of the env command if the command failed