mahahahad / Minishell

1 stars 1 forks source link

export #4

Closed mahahahad closed 3 months ago

mahahahad commented 5 months ago

Built-in: export

Export an environment variable allowing it to be used by any other process.

On its own, export will SORT by ascending-order and print all the environment variables following the format:

declare -x key="value"
declare -x no_value_key

Export accepts multiple key-value pairs allowing users to set multiple environment variables in one command itself.

Calling export with only a key and no value results in an empty environment variable being created.