declare -x VAR

Category: Shell & Bash

declare -x VAR

Mark variable for export to child processes

Marks a variable for automatic export so child processes inherit it, same as using export.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.